2 Replies Latest reply on Feb 4, 2013 3:29 AM by Laubender

    Can the file location/path of libraries be found while in InDesign?

    designjd

      Is there a way to see where a library file is located once it is opened through InDesign? I can't seem to find a location to "right click, file info" or similar. I want to know if it is in C:\blahblahblah.

       

      InDesign's workspace seems to be opening outdated libraries for our users, despite the libraries being moved and renamed. I need to know the exact location of the library to purge it from our system.

        • 1. Re: Can the file location/path of libraries be found while in InDesign?
          Laubender Adobe Community Professional & MVP

          @designjd – you could try the following JavaScript (ExtendScript) that will show all open library files with their full path names in a dialog window with a scrollable and editable text field. You could copy/paste the entries in the text field for further use.

           

          Here is the code:

           

          if(app.libraries.length > 0){
              
              var openLibrariesFullNamesARRAY = app.libraries.everyItem().fullName;
              var myMessageHeader = "List of opened Libraries file paths:";
          
              alert_scroll(myMessageHeader,openLibrariesFullNamesARRAY);
              };
          
          else{alert("No open InDesign Library file detected.")};
          
          //Thanks Marijan Tompa [Tomaxxi] for the alert_scroll function at:
          //http://tomaxxi.com/2010/07/scrollable-alert/
          
          function alert_scroll (title, input){
              
                 if(input instanceof Array){input = input.join ("\r")};
                 
                 var w = new Window ("dialog", title);
                 
                 var list = w.add("edittext", undefined, input, {multiline: true, scrolling: true});
                 
                 list.maximumSize.height = w.maximumSize.height-100;
                 list.minimumSize.width = 550;
                 
                 w.add("button", undefined, "Close", {name: "ok"});
                 w.show();
                 
          };
          

           

          Save it as text only, chose .jsx instead of .txt when you name the file.
          Put the jsx file in the "Scripts Panel" folder of InDesign and start it from InDesign by double clicking its name in the Scripts Panel of InDesign.

           

          If there is no Library file open, you'll get a message: "No open InDesign Library file detected."

           

          If one or some library files are open, you get something like this (Mac OSX UI, but should work on MS Windows, too):

           

          OpenLibraryFiles.png

           

          You have to close the dialog window to proceed with your work in InDesign.

           

          Uwe

          • 2. Re: Can the file location/path of libraries be found while in InDesign?
            Laubender Adobe Community Professional & MVP

            @designjd – did the script work for you on MS Windows?

            I cannot test it there. I'm on Mac OS X 10.6.8.

             

            If you need further help on installing scripts see (among others):

             

            http://www.danrodney.com/scripts/directions-installingscripts.html

             

            Uwe