Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to set alignment of a TextFrame in illustrator using extendscript

Explorer ,
Oct 05, 2016 Oct 05, 2016

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

TOPICS
Scripting
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Oct 05, 2016 Oct 05, 2016

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

Loic

http://www.ozalto.com/

Translate
Adobe
People's Champ ,
Oct 05, 2016 Oct 05, 2016

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

Loic

http://www.ozalto.com/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 05, 2016 Oct 05, 2016
LATEST

so for me thats

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

Thanks very much

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines