Skip to main content
This topic is closed to new replies. Start a new post to keep the conversation going.

11 replies

Lara_seven
Known Participant
May 8, 2019 5:23 AM UTC

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.

Translate
Ten A
Community Expert
Ten ACommunity ExpertAuthor
Community Expert
May 8, 2019 5:56 AM UTC

Unfortunately, This library does not support custom plugins.

Translate
Trevor:
Legend
May 8, 2019 3:00 PM UTC

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

Translate
Ten A
Community Expert
Ten ACommunity ExpertAuthor
Community Expert
Mar 8, 2019 11:02 PM UTC

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.

Translate
Inspiring
Apr 10, 2020 2:36 PM UTC

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?

Translate
CarlosCanto
Community Expert
Community Expert
Mar 7, 2019 3:38 PM UTC

thanks Ten, this is awesome!!

Translate
itsBenMason
Inspiring
Mar 7, 2019 2:24 PM UTC

Thank you, should be useful!

Translate
Disposition_Dev
Legend
Mar 7, 2019 2:03 PM UTC

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

Translate
Silly-V
Legend
Mar 7, 2019 7:12 AM UTC

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

Translate