1 Reply Latest reply on Mar 31, 2013 2:48 AM by -hans-

    add context menu

    scriptworker Level 1

      I try to add a context menu item like this, but it does not show up:




      function main() {


          var myLayoutContextMenu = app.menus.item("$ID/RtMouseLayout").submenus.add('New menu');




      Can someone help?

        • 1. Re: add context menu
          -hans- Level 4



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