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)

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

Hi

I have a work around using System events.

Its a bit messy but…

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