Copy link to clipboard
Copied
I try to add a context menu item like this, but it does not show up:
main();
function main() {
var myLayoutContextMenu = app.menus.item("$ID/RtMouseLayout").submenus.add('New menu');
}
Can someone help?
Copy link to clipboard
Copied
Hi,
you've got to add a menu item to the submenu. Seems that a empty one isn't displayed ...
contextMenu = app.menus.item("$ID/RtMouseDefault"); | |
sma = app.scriptMenuActions.add("a new menuitem"); |
sbm = contextMenu.submenus.add("someTest");
sbm.menuItems.add(sma);