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

Center a text with applescript

Guest
Jun 08, 2009 Jun 08, 2009

Hi

here is a small problem that i can't understand.

I make a text frame with name "nomcoul".

I can change the size, the color, the horizontal scale but impossible to make it's alignement to center

tell text frame nomcoul of document 1

set horizontal scale of every line of the text range to 85

set size of every line of the text range to 15

set fill color of every word of every line of the text range to {black:40}

set alignment of every paragraph of the text range to center -- doesn't work

end tell

Thanks

TOPICS
Scripting
2.0K
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

Advocate , Jun 08, 2009 Jun 08, 2009

Try using 'justification' instead of 'alignment'.

I believe alignment is the vertical position of the text.

Translate
Adobe
Advocate ,
Jun 08, 2009 Jun 08, 2009

Try using 'justification' instead of 'alignment'.

I believe alignment is the vertical position of the text.

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
Guest
Jun 08, 2009 Jun 08, 2009

i was thinking horizontal position

i will try with justification

Thanks for help

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
Guest
Jun 10, 2009 Jun 10, 2009
LATEST

So here is the result !

you are right !! the good sentence is :

set justification of every line of the text range to center

Thanks a lot !

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