Copy link to clipboard
Copied
While building Ai Command Palette I found a great list of executeMenuCommand() values extracted by Shalako Lee from the 2017 SDK. As you might imagine, some of those commands no longer work, and since I'm about to release v0.2.0 of Ai Command Palette I've been testing them all and keeping track of the results in this Google Sheet.
I'm sharing this here because I figured this might be useful to some of you who write scripts for Illustrator. The sheet includes the Original List of commands from Shalako and a working list of the commands that I'm testing in Ai v26.3.1.
Right now I'm about halfway through the original 506 commands from Shalako's list. So far, I've found about 90 that no longer work. I've also updated any verbiage that may have changed in the menu system (since 2017) and updated the ordering to match Ai v26.3.1.
I also, made a simple script to test the commands below if you want to test any yourself. I'm trying to test each command in context to ensure they are working correctly.
Let me know if you have any other that I may have missed... Cheers!
P.S. There is another list on this forum (posted in 2014) that I have yet to review but I am aware of it and plan to compare it with Shalako's.
var result = prompt("Enter Command To Test", "", "Test Built-In Commands");
try {
app.executeMenuCommand(result);
} catch (e) {
alert("Error executing command:\n" + result + "\n\n" + e);
}
You may be interested in this
I've found Ten A's list to be the most complete:
https://ten-artai.com/illustrator-ccver-22-menu-commands-list
I also maintain a menuCommandString database, so I will introduce it. It is Illustrator 2022 (26.4.1) equivalent and is made of Notion. There are currently 530 commands in this database.
Illustrator Reference/ExtendScript/app.executeMenuCommand | Notion
There is my list for app.executeMenuCommand('command'),
with some plugins and parm error:
https://www.dropbox.com/s/kr426jos9gw09ko/menu.txt?dl=0
And app.selectTool('command'):
Found new commands in Illustrator v29.0.
menu |
key |
note |
Object > Objects on Path > Attach |
Attach Objects on Path |
Added from v29.0 |
Object > Objects on Path > Options |
Options Objects on Path |
Added from v29.0 |
Object > Objects on Path > Expand |
Expand Objects on Path |
Added from v29.0 |
Window > Type > Reflow Viewer |
ReflowWindowMenu |
Added from v29.0. East asian feature |
And a tool.
tool |
key |
note |
Objects on Path |
Adobe Constraints Tool |
Added from |
Copy link to clipboard
Copied
Not everything is exposed for scripting. Lots of the special dialogs and menus are exposed. I also doubt this function is exposed..
You could perhaps call a key press using script, but I think you would than need to send this code to the system. That's kinda tricky to pulloff
Copy link to clipboard
Copied
Perhaps a simple escape key press will work. But doing the save action is not possible.
You can try to record an action. If that works, than you can convert the action to something which can be added in a script.
I've done this with some items. But if it can be recorded, it can't be done.
If you need to more info about adding an action into script let me know
Copy link to clipboard
Copied
Found new commands in Illustrator v28.6; no additions in v28.7.
menu |
key |
note |
File > Generate Vectors (Beta) |
Generate Modal File Menu |
Note that there is a space after 'Menu'. Added from v28.6 |
Object > Gen Shape Fill (Beta) |
Shape Fill Object Menu |
Added from v28.6 |
Window > Generate Patterns (Beta) |
Adobe Generative Patterns Panel |
Added from v28.6 |
Copy link to clipboard
Copied
Awesome, I'll get these added to my script. Thanks as always @sttk3!
Copy link to clipboard
Copied
thanks sttk3!
Copy link to clipboard
Copied
Found new commands in Illustrator v29.0.
menu |
key |
note |
Object > Objects on Path > Attach |
Attach Objects on Path |
Added from v29.0 |
Object > Objects on Path > Options |
Options Objects on Path |
Added from v29.0 |
Object > Objects on Path > Expand |
Expand Objects on Path |
Added from v29.0 |
Window > Type > Reflow Viewer |
ReflowWindowMenu |
Added from v29.0. East asian feature |
And a tool.
tool |
key |
note |
Objects on Path |
Adobe Constraints Tool |
Added from v29.0 |
Copy link to clipboard
Copied
@sttk3, you are the BEST! Commands have been added to my sheet and AiCommandPalette v0.11.3. Thanks for your great work!
Copy link to clipboard
Copied
No additions were made in Illustrator v29.1.
The menu Ungroup All has been added, which allows setting keyboard shortcut and recording action, but no command is assigned. Not sure whether this is the intended behavior or not.
Copy link to clipboard
Copied
No additions were made in Illustrator v29.2.1.
The menu Window > Help Bar has been added but no permanent command is assigned.
Copy link to clipboard
Copied
Found new commands in Illustrator v29.3. And overlooked, but it seems that Ungroup All was assigned a persistent menu command string in v29.2. Reinstalled and tried again, and indeed @Sergey Osokin was right, it was just ungroup. Updated to v29.3 and up.
menu |
key |
note |
Object > Ungroup All |
ungroup all |
Added from v29.3 |
Window > Toolbars > Getting Started |
Adobe Quick Toolbar Menu |
Added from v29.3 |
Copy link to clipboard
Copied
Hmm. Mac OS, Illustrator v29.2.1 app.executeMenuCommand('ungroup all') not working. It only works as an current āungroupā command.
Copy link to clipboard
Copied
In other words, no errors but insufficient results? Perhaps changing it to āadded from v29.3ā would help.
Copy link to clipboard
Copied
It seems to have appeared in 29.3. In 29.2, the bug does not occur, but works as a standard ungroup.
Copy link to clipboard
Copied
Awe inspiring, that's what I'm looking for.šš
Copy link to clipboard
Copied
There is my list for app.executeMenuCommand('command'),
with some plugins and parm error:
https://www.dropbox.com/s/kr426jos9gw09ko/menu.txt?dl=0
And app.selectTool('command'):
Copy link to clipboard
Copied
Another great list! I went through all of yours and added the ones I didn't have. Thanks so much!
Copy link to clipboard
Copied
I was not aware of the "app.selectTool()" command! Thank you.
Copy link to clipboard
Copied
Command has been updated to AI 2023.
Also, maybe someone will need a list of aliases ā commands from the kys file and their counterparts for executeMenuCommand:
Copy link to clipboard
Copied
thanks for the update!
Copy link to clipboard
Copied
I thought a bit and made a draft of the commands change log:
https://www.dropbox.com/s/nkzyv483dr4tx0t/modifiedcommands.json?dl=0
The log is inaccurate, but perhaps someone will clarify and supplement it.
Copy link to clipboard
Copied
Yeah, so I built a new spreadsheet for my latest version of Ai Command Palette which you can see here. It has the min and max versions for menu and tool commands that I was last aware of. I plan to go through your list and add them there as well. It has a bunch of other stuff, including the localization for DE and RU. This python script I created ingests these spreadsheets (as CSV's) and creates JavaScript objects very similar to your last post (see below).
Ai Command Palette uses this to know which menu commands and tools should be available for each user depending on their system. It would be great if we could all work together to try and complete this list as much as possible. I did a bunch of testing for the last version and plan to do the same for this one when I have time.
// generated localized commands data object
{
tool: {
"tool_Adobe Add Anchor Point Tool": {
action: "Adobe Add Anchor Point Tool",
type: "tool",
minVersion: 24,
maxVersion: null,
loc: {
en: "Add Anchor Point Tool",
de: "Ankerpunkt-hinzufĆ¼gen-Werkzeug",
ru: "ŠŠ¾Š±Š°Š²ŠøŃŃ Š¾ŠæŠ¾ŃŠ½ŃŃ ŃŠ¾ŃŠŗŃ ŠŠ½ŃŃŃŃŠ¼ŠµŠ½Ń",
},
},
},
// ...
}
Copy link to clipboard
Copied
@krasnovpro, I went through your updated lists and got everything I didn't have added to my spreadsheet. Ai Command Palette is updated with these in v0.4.1 too. Thanks!
Copy link to clipboard
Copied
The app.selectTool command for AstuteGraphicsPlugins doesn't seem to work. When I tested it, it caused Adobe Illustrator 2024 to crash. I used the command from your tool.txt file: app.selectTool('AG Dynamic Shapes');`, but it didn't work even though the plugin is installed. Could there be an error in the documentation?
Copy link to clipboard
Copied
Correct code:
app.selectTool('Dynamic Shapes Tool');
Read the file more carefully.
Copy link to clipboard
Copied
Where did you find these tool names, I have another aip plugin but I don't know the tool names for it!