1 Reply Latest reply on Feb 11, 2009 11:18 PM by (Balázs_Slemmer)

    Restore the default menu

      Hi all,

      I remove the save and save as menu item (PC) from file menu using

      app.menus[0].menuElements[0].menuItems[3].remove();
      app.menus[0].menuElements[0].menuItems[4].remove();

      Now i can't restore it back. help me plz.

      Thanks
      Senthil.C
        • 1. Re: Restore the default menu
          Level 1
          Hi!

          The fastest way: start indesign pressing down ctrl+alt+shift. But this way all your presets and other customizations are going to be deleted too.

          The other way: use menuItems.add(associatedMenuAction, at, reference) on app.menus.item('Main').submenus.item('File')
          associated menuaction is app.menuActions.item('Save') (or Save As...)
          at should be LocationOptions.AFTER
          and for reference: app.menus.item('Main').submenus.item('File').menuItems.item('Close')

          In case of CS3; I don't know about the scripting of other versions.

          Balázs