Skip to main content
August 25, 2011
Answered

Vertical Align Text Frame's text in AppleScript.

  • August 25, 2011
  • 1 reply
  • 1979 views

Hi, can't seem to get syntax correct to vertically align text in text frame from AppleScript.

Thanks,

Joe

This topic has been closed for replies.
Correct answer csm_phil

Hi Joe,

Can you please try this, i hope you expect this?

tell application "Adobe InDesign CS4"
     set myVerticalJustification to center align
     set vertical justification of text frame preferences of selection to myVerticalJustification
end tell

thx

csm_phil

1 reply

August 25, 2011

Meant to say vertically center, sorry.

csm_phil
csm_philCorrect answer
Legend
August 26, 2011

Hi Joe,

Can you please try this, i hope you expect this?

tell application "Adobe InDesign CS4"
     set myVerticalJustification to center align
     set vertical justification of text frame preferences of selection to myVerticalJustification
end tell

thx

csm_phil

August 31, 2011

Perfect, thanks for the help!  I was away so just got to try.