Monday, March 1, 2021

#1 2021-01-18 10:27:16 am

timbaldwin
Member
Registered: 2006-08-14
Posts: 80

Illustrator left justification of text problem

Hi

Does anyone have an idea why I cannot left justify text in a text frame.  I can justify it right and centre, but not left.

To demonstrate (assuming single text object e.g "Hello World" on page)

Applescript:

tell application "Adobe Illustrator"
   tell document 1
       set the justification of the text of text frame 1 to right -- OK
       delay 1
       set the justification of the text of text frame 1 to center -- OK
       delay 1
       set the justification of the text of text frame 1 to left -- IGNORED
   end tell
end tell

The above script will perform the first two justifications OK but ignore the last (left) justification.

Are you getting the same result?    Any help would be appreciated.

I am using Illustrator 2019 but it does the same thing on 2021

Tim


Tim

Offline

 

#2 2021-01-19 05:32:55 am

timbaldwin
Member
Registered: 2006-08-14
Posts: 80

Re: Illustrator left justification of text problem

Hi

I have a work around using System events.

Its a bit messy but..

Applescript:

tell application "System Events"
   tell process "Adobe Illustrator"
       set frontmost to true
       keystroke "c" using {command down, shift down}
       delay 1
       keystroke "r" using {command down, shift down}
       delay 1
       keystroke "l" using {command down, shift down}
   end tell
end tell

I think I can use this OK.  Unless someone can suggest a better way around this apparent bug.

Thanks


Tim

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)