How add text to frames in script: MakeGrid.jsx
I use standard script MakeGrid.jsx (InDesign), make Grid boxes.
Hoe can I change fontsize, fonttype, textcolor etc. for text in those boxes?
I tried several ways (blue text eg.), but nothing changes the text... Text comes in boxes, thats OK, but I can't change its font etc.
default code (at line 131 ...):
if(myRetainFormatting == true){
myNewObject = myObject.duplicate();
myNewObject.geometricBounds = [myY1, myX1, myY2, myX2];
}
replaced code (at line131 ...):
if(myRetainFormatting == true){
myNewObject = myObject.duplicate();
myNewObject.geometricBounds = [myY1, myX1, myY2, myX2];
tmp = myNewObject.textFrames.add(
{
geometricBounds :[myY1, myX1, myY2, myX2],
strokeWidth : 0,
size:30,
fillColor : "None",
contents : "some text"
});
}
