Reply To: Script to modify all objects with the same Object Style

#89255

I have no idea, what Loic is trying to do here ;-)

So, please test this verry short version (will not work with grouped textframes):

var curDoc = app.activeDocument;
var allTextFrames = curDoc.textFrames;
var nFrames = allTextFrames.length;

for (var i = 0; i < nFrames; i++) {
  var curFrame = allTextFrames[i];
  if (curFrame.appliedObjectStyle.name == "name") {
    curFrame.move(undefined, [0, "-0.25in"]);
  }
}

Kai

This article was last modified on October 21, 2016

Comments (0)

Loading comments...