Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


[ANN] Adding AiMenu class.

Adobe Community Professional ,
Mar 06, 2019 Mar 06, 2019

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.

スクリーンショット 2019-03-06 16.48.17.png

Also, types file available a few weeks later.

TOPICS
Scripting

Views

938

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 07, 2019 Mar 07, 2019

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. 😃

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2019 Mar 07, 2019

Copy link to clipboard

Copied

Thank you, should be useful!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 07, 2019 Mar 07, 2019

Copy link to clipboard

Copied

thanks Ten, this is awesome!!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 08, 2019 Mar 08, 2019

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.

スクリーンショット 2019-03-07 19.08.42.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 21, 2019 Mar 21, 2019

Copy link to clipboard

Copied

Hello hello,

In first time, thank you for sharing

In second time, how you found this informations please ?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 10, 2020 Apr 10, 2020

Copy link to clipboard

Copied

LATEST

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?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 07, 2019 May 07, 2019

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.

Screen Shot 2019-05-08 at 10.51.27 AM.png

Thanks in advance.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

Unfortunately, This library does not support custom plugins.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
May 08, 2019 May 08, 2019

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 08, 2019 May 08, 2019

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines