• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
6

executeMenuCommand() Command List

Enthusiast ,
Aug 12, 2022 Aug 12, 2022

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);
}

 

 

 

This browser version is no longer supported. Please upgrade to a supported browser.
TOPICS
Scripting

Views

14.5K

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

correct answers 3 Correct answers

Guide , Aug 12, 2022 Aug 12, 2022

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 

Votes

Translate

Translate
Community Expert , Aug 12, 2022 Aug 12, 2022

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

Votes

Translate

Translate
Explorer , Aug 15, 2022 Aug 15, 2022

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'):

https://www.dropbox.com/s/qjivaj753y1egwl/tool.txt?dl=0

Votes

Translate

Translate
Adobe
LEGEND ,
Aug 12, 2022 Aug 12, 2022

Copy link to clipboard

Copied

Awesome! Thanks for sharing this.

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
Guide ,
Aug 12, 2022 Aug 12, 2022

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 

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
Enthusiast ,
Aug 12, 2022 Aug 12, 2022

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!

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
Enthusiast ,
Aug 12, 2022 Aug 12, 2022

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

  • Define Pattern Menu Item
  • TracingPresets
  • SWFPresets
  • FileClipboardPref
  • Adobe internal composite font plugin
  • Adobe Kinsoku Settings (may not be working on my machine because of language issues)
  • Adobe MojiKumi Settings (may not be working on my machine because of language issues)
  • Selection Hat 12
  • Dynamic Text
  • Input Text
  • Live PSAdapter_plugin_Ct
  • Live PSAdapter_plugin_Spt
  • Live PSAdapter_plugin_Gls
  • Live PSAdapter_plugin_Grn
  • Adobe Save Workspace
  • AdobeBuiltInToolbox1
  • Adobe Illustrator Kuler Panel
  • about (since it's being run from a script the About screen only flashes for a split second)
  • Adobe Color Palette Secondary (just a copy of Adobe Color Palette)
  • AdobeNavigator2
  • AdobeNavigator2

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 ,
Aug 12, 2022 Aug 12, 2022

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

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
Enthusiast ,
Aug 12, 2022 Aug 12, 2022

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!

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 ,
Aug 12, 2022 Aug 12, 2022

Copy link to clipboard

Copied

Remarks:

 

  • Includes both old and new menu items that have been renamed. There are duplicates
  • The last part of the Photoshop effect is 4 characters long. If it is short, fill in the spaces (e.g. 'Live PSAdapter_plugin_Ct  ')
  • There was confusion in the specification with both the properties panel and version history being the empty string ''. It seems that they changed to 'Adobe Property Palette' and 'Adobe Version History File Menu Item' at some point

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
Enthusiast ,
Aug 13, 2022 Aug 13, 2022

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 PresetsSWFPresets
Illustrator > Preferences > File Handling & ClipboardFileClipboardPref
Type > Composite FontsAdobe internal composite font plugin
Type > Kinsoku Shori SettingsAdobe Kinsoku Settings
Type > Mojikumi SettingsAdobe MojiKumi Settings
Window > Toolbars > DefaultDefault ToolBar
Window > Color ThemesAdobe Illustrator Kuler Panel
Window > LibrariesAdobe CSXS Extension com.adobe.DesignLibraries.angularライブラリ
Window > LibrariesAdobe CSXS Extension com.adobe.DesignLibraries.angularCC ライブラリ
Window > HistoryAdobe HistoryPanel Menu Item
Window > LearnAdobe Learn Panel Menu Item

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 ,
Aug 14, 2022 Aug 14, 2022

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

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
Enthusiast ,
Aug 14, 2022 Aug 14, 2022

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!

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 05, 2023 Mar 05, 2023

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

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
Enthusiast ,
Mar 06, 2023 Mar 06, 2023

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!

 

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 ,
Jun 23, 2023 Jun 23, 2023

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

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 ,
Jun 23, 2023 Jun 23, 2023

Copy link to clipboard

Copied

thanks for sharing!

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
Enthusiast ,
Jun 26, 2023 Jun 26, 2023

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!

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 ,
Sep 17, 2023 Sep 17, 2023

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

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
Enthusiast ,
Sep 18, 2023 Sep 18, 2023

Copy link to clipboard

Copied

Awesome, I've got it added but on the ignore list for now. Thanks as always!

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 ,
Oct 11, 2023 Oct 11, 2023

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

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 ,
Oct 11, 2023 Oct 11, 2023

Copy link to clipboard

Copied

awesome!! thanks @sttk3 

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
Enthusiast ,
Oct 11, 2023 Oct 11, 2023

Copy link to clipboard

Copied

Awesome work as always! I'll get these added to my list and projects. Thanks @sttk3 !

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 ,
Dec 14, 2023 Dec 14, 2023

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

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
Enthusiast ,
Dec 14, 2023 Dec 14, 2023

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!

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
New Here ,
Jul 24, 2024 Jul 24, 2024

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? 

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
Advocate ,
Jul 24, 2024 Jul 24, 2024

Copy link to clipboard

Copied

@samanthac17988544 

 

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

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