Reply To: label script

#52781

Hey, but you are very close!

All it needs is an “ignoreWrap” command, and that's to be applied to a textFramePreferences, which in turn is a part of a text frame proper. So it's “good” to locate where some text frame gets created, and really “best” when you can find a line that does something with the text frame preferences (*). See the first line you copied!

Add this right after that line:

myTextFrame.textFramePreferences.ignoreWrap = true;

and you should be alright.

[*] Why do text frames have separate text frame preferences? Nobody knows — it might be because you can, uh, “store” the text frame preferences into an object style. My personal 2nd best guess is the Adobe engineers didn't like the idea to have more than a hundred properties per each text frame.

This article was last modified on March 14, 2011

Comments (0)

Loading comments...