Copy link to clipboard
Copied
Hi folks!
Is there a way to access the right to left paragraph direction setting from an English version of illustrator with AppleScript?
I understood that we need to install an English (arabic) version of illustrator to have this setting, is this the only way? Having to switch between the two to work on Arabic or other languages is really bad.. 😕
Thanks!
It appears to work in my American version of Illustrator.
Javascript:
#target illustrator
function test(){
var doc = app.activeDocument;
doc.textFrames[0].paragraphs[0].paragraphDirection = ParagraphDirectionType.RIGHT_TO_LEFT_DIRECTION;
};
test();
AppleScript:
tell application "Adobe Illustrator"
set the ParagraphDirection of first paragraph of first text frame of first document to right to left
end tell
Copy link to clipboard
Copied
It appears to work in my American version of Illustrator.
Javascript:
#target illustrator
function test(){
var doc = app.activeDocument;
doc.textFrames[0].paragraphs[0].paragraphDirection = ParagraphDirectionType.RIGHT_TO_LEFT_DIRECTION;
};
test();
AppleScript:
tell application "Adobe Illustrator"
set the ParagraphDirection of first paragraph of first text frame of first document to right to left
end tell
Copy link to clipboard
Copied
oh! Interesting, I was using CC2017 ans this is not available on CC2017!
They added it in 2018! Thank you!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now