Skip to main content
This topic has been closed for replies.

6 replies

Lara_seven
Known Participant
May 8, 2019

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.

Ten A
Community Expert
Ten ACommunity ExpertAuthor
Community Expert
May 8, 2019

Unfortunately, This library does not support custom plugins.

Trevor:
Legend
May 8, 2019

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

Ten A
Community Expert
Ten ACommunity ExpertAuthor
Community Expert
March 8, 2019

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.

Inspiring
April 10, 2020

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?

CarlosCanto
Community Expert
Community Expert
March 7, 2019

thanks Ten, this is awesome!!

itsBenMason
Inspiring
March 7, 2019

Thank you, should be useful!

Disposition_Dev
Legend
March 7, 2019

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. =)

Silly-V
Legend
March 7, 2019

It's already useful by how you documented and structured it, thank you!