10 Replies Latest reply on May 5, 2016 11:08 PM by karthiks94217840

    Reset File menu

    karthiks94217840 Level 2

      Dear Friends,

       

      I was try to workout one script, That time, unfortunately my File menu is"Hide". But, File menu options all working fine.

       

      How to Reset file menu in my INDD Document (I am using system MAC).  Please suggest friends.

       

      Screen Shot 2016-05-03 at 2.08.03 PM.png

       

      That File menu viewed for Edit menu last submenu. Please see my screen shot for your reference.

       

      Screen Shot 2016-05-03 at 2.09.31 PM.png

       

      Please suggest Friends

       

      Advance Thanks

        • 1. Re: Reset File menu
          tpk1982 Level 4

          Restart the system and open the indesign again. Didi you tried that?

           

          Also share your script when the file menu hide

          • 2. Re: Reset File menu
            karthiks94217840 Level 2

            Hi Tpk,

             

            Already, i try to restart the system but not view TPK

             

            This coding for "Add menu and submenu" in  the indd document.

             

            #targetengine "FileManu"

            menuInstaller(); 

            function menuInstaller() { 

                 try {

                                app.menus.item("$ID/Main").submenus.item("File").remove();

                            }catch(e){}

                           

                            menuT = "File",

                             subT = "XXX";

                             subs = app.menus.item("$ID/Main").submenus; 

                            var refItem = app.menus.item("$ID/Main").submenus.item("$ID/&Layout");

             

             

                            mnu = subs.item(menuT); 

                                if( mnu == null ) { 

                                    mnu = subs.add(menuT, LocationOptions.after, refItem); 

                                } 

             

             

             

             

                            subsSubs = app.menus.item( '$ID/Main' ).submenus.item( menuT ).submenus;

                                mnuSubMenu = subsSubs.item( subT ); 

                                if( mnuSubMenu == null ) { 

                                    mnuSubMenu = subsSubs.add( subT); 

                                }

             

             

                                        mnu.menuSeparators.add(LocationOptions.BEFORE,mnuSubMenu);

                                        };

             

             

            alert("See your File manu XXX")

             

            Above script coding working good.

             

            Next, I was try to remove submenu "XXX". That time removed for File menu also TPK.

             

            #targetengine "FileManu"

             

            menuInstaller(); 

             

            function menuInstaller() { 

                 try {

                                app.menus.item("$ID/Main").submenus.item("File").remove(); // I have mistake this line

                            }catch(e){}

                            }

            alert("Done");

             

            Thanks

            • 3. Re: Reset File menu
              tpk1982 Level 4

              Am not sure why you tried this script. This actually remove your inbuilt File menu and added from your script.

               

              Please check all plugin and Presets are same with other system. Otherwise please copy those and replace in your system.

               

              Before do the above task see this:

               

              Preference Manager Script | in-tools.com

              • 4. Re: Reset File menu
                tpk1982 Level 4

                also replace this with other system

                 

                Macintosh: Hard Drive/Users/<USER>/Library/Preferences/Adobe InDesign/<Version #>/en_GB/InDesign Defaults

                • 5. Re: Reset File menu
                  karthiks94217840 Level 2

                  Okay TPK,

                   

                  I will try and get back to you

                   

                  Thanks

                  • 6. Re: Reset File menu
                    tpk1982 Level 4

                    is it working?

                    • 7. Re: Reset File menu
                      karthiks94217840 Level 2

                      Hi TPK

                       

                      Not working tpk. Again, i am install for indesign

                       

                      Thanks

                      • 8. Re: Reset File menu
                        Peter Kahrel Adobe Community Professional & MVP

                        Delete InDesign's preferences: exit InDesign, restart it and while Indesign starts, press Ctrl+Alt+Del. Confirm the question whether you want to delete the preferences.

                         

                        Peter

                        • 9. Re: Reset File menu
                          tpk1982 Level 4

                          Thanks for your information Peter..

                          • 10. Re: Reset File menu
                            karthiks94217840 Level 2

                            Thanks pkahrel.