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'):
Copy link to clipboard
Copied
Awesome! Thanks for sharing this.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Holy smokes this looks great! I'll get new ones I don't already have added to the sheet and added to Ai Command Palette. Thanks!
Copy link to clipboard
Copied
@femkeblanco good news is mine matched up almost perfectly with Ten A's except for the following commands that I had removed because they do not work. Thanks again for the tip!
Non-Working Commands
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
This is great! Seems you have about 75 that I haven't found anywhere else. I'll go through them all and get them added. Thanks so much!
Copy link to clipboard
Copied
Remarks:
Copy link to clipboard
Copied
@sttk3, your list of command strings is great! I tested all 500+ on my Mac in Ai v26.3.1 and only found 11 that didn't work for me. I've listed them below. I've updated my spreadsheet with any new commands you had that I didn't. Thanks again for sharing!
Edit > SWF Presets | SWFPresets |
Illustrator > Preferences > File Handling & Clipboard | FileClipboardPref |
Type > Composite Fonts | Adobe internal composite font plugin |
Type > Kinsoku Shori Settings | Adobe Kinsoku Settings |
Type > Mojikumi Settings | Adobe MojiKumi Settings |
Window > Toolbars > Default | Default ToolBar |
Window > Color Themes | Adobe Illustrator Kuler Panel |
Window > Libraries | Adobe CSXS Extension com.adobe.DesignLibraries.angularライブラリ |
Window > Libraries | Adobe CSXS Extension com.adobe.DesignLibraries.angularCC ライブラリ |
Window > History | Adobe HistoryPanel Menu Item |
Window > Learn | Adobe Learn Panel Menu Item |
Copy link to clipboard
Copied
Thanks @jduncan, I noticed some changes thanks to your confirmation. I’m actually tracking the available versions as best I can and will update later.
Illustrator Reference/Raw Database (for internal use)/menuCommandsString | Notion
Edit > SWF Presets | SWFPresets | Removed from v26 |
Illustrator > Preferences > File Handling & Clipboard | FileClipboardPref | Removed from v25 |
Illustrator > Preferences > Clipboard Handling | ClipboardPref | Added from v26 |
Type > Composite Fonts | Adobe internal composite font plugin | Japanese language features |
Type > Kinsoku Shori Settings | Adobe Kinsoku Settings | Japanese language features |
Type > Mojikumi Settings | Adobe MojiKumi Settings | Japanese language features |
Window > Toolbars > Default | Default ToolBar | Removed from v23 |
Window > Color Themes | Adobe Illustrator Kuler Panel | Removed from v26 |
Window > Libraries | Adobe CSXS Extension com.adobe.DesignLibraries.angularライブラリ | Removed from v23 |
Window > Libraries | Adobe CSXS Extension com.adobe.DesignLibraries.angularCC ライブラリ | Japanese characters are included. This item means Creative Cloud Library |
Window > History | Adobe HistoryPanel Menu Item | Added from v26.4 |
Window > Learn | Adobe Learn Panel Menu Item | Removed from v26 |
Copy link to clipboard
Copied
I found that "Preferences > File Handling..." == "FilePref" in v26 if you wanted to add that to your list. Thanks again for your help!
Copy link to clipboard
Copied
Found a new command.
Type > Bullets and Numbering > Convert to text | convert list style to text | Added from v27.1 |
Copy link to clipboard
Copied
@sttk3 this is great! I've got it added to my list and it will be in the next release of AiCommandPalette. Thanks for sharing!
Copy link to clipboard
Copied
Found new commands.
Window > Retype (Beta) | ReTypeWindowMenu | Added from v27.6 |
Edit > Edit Colors > Generative Recolor (Beta) | Generative Recolor Art Dialog | Added from v27.6 |
Copy link to clipboard
Copied
thanks for sharing!
Copy link to clipboard
Copied
Awesome! I'm going to add these to AiCommandPalette this week. Thanks so much for keeping everyone up to date!
Copy link to clipboard
Copied
Found a new command. But this is not a stable key, and the numerical part could change.
Window > Contextual Task Bar |
_GenericPluginMenuItem 25 |
Added from v27.9 |
Copy link to clipboard
Copied
Awesome, I've got it added but on the ignore list for now. Thanks as always!
Copy link to clipboard
Copied
Found new commands. I expected the "Contextual Task Bar" to have a formal key added, but there were no changes.
Object > Path > Smooth |
smooth menu item |
Added from v28.0 |
Object > Pattern > Text to Pattern (Beta) |
Text To Pattern |
Added from v28.0 |
Object > Mockup (Beta) > Make |
Make Vector Edge |
Added from v28.0 |
Object > Mockup (Beta) > Release |
Release Vector Edge |
Added from v28.0 |
Object > Mockup (Beta) > Edit |
Edit Vector Edge |
Added from v28.0 |
Window > Mockup (Beta) |
Adobe Vector Edge Panel |
Added from v28.0 |
Window > Text to Vector Graphic (Beta) |
Generate |
Added from v28.0 |
Copy link to clipboard
Copied
awesome!! thanks @sttk3
Copy link to clipboard
Copied
Awesome work as always! I'll get these added to my list and projects. Thanks @sttk3 !
Copy link to clipboard
Copied
Found new commands.
menu |
key |
note |
Edit > Preferences > Touch Workspace |
TouchPref |
Windows touch devices only |
Select > Update Selection |
Selection Hat 14 |
Added from v28.0 |
And a tool.
Illustrator Reference/ExtendScript/app.selectTool | Notion
tool |
key |
note |
Dimension Tool |
Adobe Dimension Tool |
Added from v28.1 |
Copy link to clipboard
Copied
@sttk3, thanks as always! I've got these added to my Google Sheet and they'll be in the next release of AiCommandPalette. Cheers!
Copy link to clipboard
Copied
This is amazing - I just have one question - how can I close out of a tool such as as Adobe Edit Pattern from the script?
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