Copy link to clipboard
Copied
I need this script:
Search footnotes in a document, and in these pages with footnotes change the vertical alignment to top...
Thanks.... (And sorry for my not good english !!!)
(Not sure I've understood the goal.)
Maybe you need something like this:
var tfs = app.activeDocument.textFrames.everyItem().getElements(),
tf;
while( tf=tfs.pop() )
if ( tf.footnotes.length )
tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
@+
Marc
Copy link to clipboard
Copied
(Not sure I've understood the goal.)
Maybe you need something like this:
var tfs = app.activeDocument.textFrames.everyItem().getElements(),
tf;
while( tf=tfs.pop() )
if ( tf.footnotes.length )
tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
@+
Marc
Copy link to clipboard
Copied
Hey, Marc,
That's a really neat way to construct a loop!
Cheers,
Harbs
Copy link to clipboard
Copied
The less I use variables, the more I'm happy
@+
Marc
Copy link to clipboard
Copied
It's simple and perfect...
Thank you very much !!!!!!!