Copy link to clipboard
Copied
Here is a custom class of Illustrator's JavaScript.
GitHub - ten-A/AiMenuObject: Strings for executeMenuCommand
Include it and you can write executeMenuCommand's argument extremely easy like below.
Also, types file available a few weeks later.
Copy link to clipboard
Copied
It's already useful by how you documented and structured it, thank you!
Copy link to clipboard
Copied
i have been thinking about doing something like this for a while and just haven't gotten to it. my thought was to just essentially re-namespace everything so that it makes a little more sense and is easier to remember. i have to look up the commands every single time because i can't remember if the one i need is lowercase, camelcase, titlecase or includes spaces....
you beat me to the punch with something that's even better than i had imagined.. bravo. Thanks Ten. š
Copy link to clipboard
Copied
Thank you, should be useful!
Copy link to clipboard
Copied
thanks Ten, this is awesome!!
Copy link to clipboard
Copied
Now, I update types file, You can use in VS Code.
Types-for-Adobe/index.d.ts at master Ā· ten-A/Types-for-Adobe Ā· GitHub
It can help you when you input executeMenuCommand's arg like below.
Copy link to clipboard
Copied
Hello hello,
In first time, thank you for sharing
In second time, how you found this informations please ?
Copy link to clipboard
Copied
Hello, I am using app.executeMenuCommand command, everything it seems working, but when I try to undo (ctrl+Z) what script does, Illustrator crash every time. Maybe do you know why?
Copy link to clipboard
Copied
It is very useful but I am a beginner of the script so I can't able to use this type of commands.
Kindly share the sample script. How to use this execute Menu commands.
I need to access the Launch workflow in Menu command. kindly advice me.
Thanks in advance.
Copy link to clipboard
Copied
Unfortunately, This library does not support custom plugins.
Copy link to clipboard
Copied
For custom command one can usually just the menu entry.
I have done this for Launch Workflow.
If I remember correctly the below works.
app.executeMenuCommand("Launch Workflow...");
In Ten's brilliant library one can add the command to the jason
var aiMenu = {
"file" : {
"lauch" : "Launch Workflow...",
"new" : "New",
...
HTH
Trevor
Copy link to clipboard
Copied
Hi Trevor
It is working good and then it very useful for launching Esko Workflow on illustrator.
Regards
Kalaimani S