Skip to main content
Inspiring
October 5, 2016
Answered

How to set alignment of a TextFrame in illustrator using extendscript

  • October 5, 2016
  • 1 reply
  • 1313 views

Can't work this out or find any thing I can get this to work. I want to make the anchor point on a text object be on the right of the text (align right). have tries this:

if(item.constructor.name == "TextFrame") {

        item.textRange.ParagraphAttributes.justification = Justification.rightAlign;

}

but it doesn't work. Would anyone out there tell me what i'm doing wrong

Thanks

This topic has been closed for replies.
Correct answer Loic.Aigon

app.selection[0].paragraphs[0].justification = Justification.CENTER;

Loic

http://www.ozalto.com/

1 reply

Loic.Aigon
Loic.AigonCorrect answer
Legend
October 5, 2016

app.selection[0].paragraphs[0].justification = Justification.CENTER;

Loic

http://www.ozalto.com/

Inspiring
October 5, 2016

so for me thats

item.paragraphs[0].justification = Justification.RIGHT; 

Thanks very much