Find frames and resize them! …
Hi,
This simple script works fine:
var myTF = app.activeDocument.textFrames.everyItem().getElements()
for(i=0; i<myTF .length; i++)
{
myStoreBounds = myTF.geometricBounds
myTF.geometricBounds = [myStoreBounds[0], myStoreBounds[1], myStoreBounds[0] +50, myStoreBounds[1] +50]
}
But not this one:
var myWidth = "50 mm"
var myHeight = "50 mm"
app.activeDocument.textFrames.everyItem().resize(
CoordinateSpaces.INNER_COORDINATES,
AnchorPoint.CENTER_ANCHOR,
ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,
[ myWidth, myHeight ]
);
I'm curious to know why! ![]()
What I truly want to do is: select several graphic frames (not a find/replace and not text frames) and resize them using this: AnchorPoint.CENTER_ANCHOR
Another way would be to find graphic frames by their color [e.g. "Red"].
Thanks for your help and your lenience! ![]()