• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
6

[ANN] Adding AiMenu class.

Community Expert ,
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

1.6K

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
Valorous Hero ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

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

Votes

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 Expert ,
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. šŸ˜ƒ

Votes

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!

Votes

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 Expert ,
Mar 07, 2019 Mar 07, 2019

Copy link to clipboard

Copied

thanks Ten, this is awesome!!

Votes

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 Expert ,
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

Votes

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 ?

Votes

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 ,
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?

Votes

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.

Votes

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 Expert ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

Unfortunately, This library does not support custom plugins.

Votes

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

Votes

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

Votes

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