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

Is there a way to run some keyboard shortcut with app.executeMenuCommand ('')?

Participant ,
Jul 13, 2020 Jul 13, 2020

Copy link to clipboard

Copied

Hi,

 

Is it possible to run some keyboard shortcut with app.executeMenuCommand ('')?

 

 

TOPICS
Scripting

Views

269
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
Guide ,
Jul 13, 2020 Jul 13, 2020

Copy link to clipboard

Copied

executeMenuCommand(), as the name implies, executes a command from a menu (File, Edit, Object, et cetera). Most of these commands have shortcuts, but to execute a command through a script, you need to specify the command to be executed.  For example

app.executeMenuCommand("zoomin");

zooms in (Ctrl+plus) and

app.executeMenuCommand("group");

groups selected items (Ctrl+G).  So what you need is the parameter representing the command, not the command's shortcut.  What commands are you looking to execute?

 

 

Votes

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 ,
Jul 14, 2020 Jul 14, 2020

Copy link to clipboard

Copied

It is plugin, not part of a standard command from a menu.

Votes

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 ,
Jul 14, 2020 Jul 14, 2020

Copy link to clipboard

Copied

LATEST

No, to my knowledge that is not possible (I am happy to be corrected).  

Votes

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