1 Reply Latest reply on Mar 10, 2008 1:38 PM by Kasyan Servetsky

    How Do I Remove a menu?

      I added some menus with CS3, using javascriptm and now I can not get them to go away...

      Is there a remove command? I can not find anything in the api about remove, as a matter of fact all im using the the InDesign CS3 Scripting Guide:Javascipt, and that does not have a reference in it for menus.

      Thanks
      Mike
        • 1. Re: How Do I Remove a menu?
          Kasyan Servetsky Level 5
          Hi Mike,

          Actually, it’s not a menu, but submenu you can’t get rid of.

          Solution #1 – Delete preferences: launch InDesign and press Cmd + Opt + Shift + Control (on Mac) or Control + Alt + Shift (on PC) and when you see — “Delete InDesign preference files?” — choose Yes.

          Solution #2 (less drastic) – I prefer to kill submenus in JavaScript Console.
          Let’s assume that I added "Script" submenu to the Main menu and want to get rid of it.
          All I have to do is just type the following line and press Enter/Return.
          app.menus.item("$ID/Main").submenus.item("Script").remove();

          Kasyan