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

How Do I Remove a menu?

New Here ,
Mar 10, 2008 Mar 10, 2008
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
TOPICS
Scripting
597
Translate
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
Valorous Hero ,
Mar 10, 2008 Mar 10, 2008
LATEST
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
Translate
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