Is there a way to run some keyboard shortcut with app.executeMenuCommand ('')?
Copy link to clipboard
Copied
Hi,
Is it possible to run some keyboard shortcut with app.executeMenuCommand ('')?
Explore related tutorials & articles
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?
Copy link to clipboard
Copied
It is plugin, not part of a standard command from a menu.
Copy link to clipboard
Copied
No, to my knowledge that is not possible (I am happy to be corrected).

