Hello,
How can I write AppleScript to communicate with Adobe Illustrator using "executeMenuCommand" (javascript command)?
I tried:
but it doesn't work, I get syntax error.
Appreciate your help, and thanks in advance
How can I write AppleScript to communicate with Adobe Illustrator using "executeMenuCommand" (javascript command)?

Illustrator CC(ver.25) menu commands list – Automation Skill
Almost complete listed, we can use from JavaScript. File menumenu commandNewnewNew from Templat...
ten-artai.com
I tried:
tell application "Adobe Illustrator"
do JavaScript "app.executeMenuCommand("Expand3");"
end tell
but it doesn't work, I get syntax error.
Appreciate your help, and thanks in advance