Copy link to clipboard
Copied
Hi!
How can apply vertical justification in all text frames of my document?
I have this code of other topic:
var mySel = app.selection[0];
mySel.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
But its works only on selected ones.
Thank you in advance!
use this..
var tfs = app.activeDocument.textFrames.everyItem().getElements(),
tf;
while( tf=tfs.pop() )
tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
Copy link to clipboard
Copied
here is the answer..
var tfs = app.activeDocument.textFrames.everyItem().getElements(),
tf;
while( tf=tfs.pop() )
tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
Copy link to clipboard
Copied
Why it is getting moderated? Strange !!!
Copy link to clipboard
Copied
use this..
var tfs = app.activeDocument.textFrames.everyItem().getElements(),
tf;
while( tf=tfs.pop() )
tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
Copy link to clipboard
Copied
Thank you so much!