7 Replies Latest reply on Feb 22, 2017 10:25 AM by cbishop01

    Library Auto Populate?

    cbishop01 Level 2

      Hi Is there a way to make a library Automatically update when something is added to a folder?  I asked in the non scripting forum and they said it cant be done the conventional way.  So i'm hoping it can be scripted. What i'm trying to do is have a Library of Our barcodes (thousands) and more are added every day.  Right now i have to Place> then add to Library. 

        • 1. Re: Library Auto Populate?
          Laubender Adobe Community Professional & MVP

          What kind of library are you talking about?


          1. InDesign library files ( *.indl ) ?

          2. CC Library libraries?


          About option 1:

          With InDesign library files you can add assets.

          Assets can be placed ( and linked! ) barcode files with their graphic frames.

          PDFs or EPS or TIFFs… plus their frames.


          A script could open a library file automatically if InDesign is started ( and is finished with starting ).
          And then would place assets, updating the links and replace the assets in the library.


          If you are talking thousands of barcode assets this could take a while.

          A few minutes perhaps?


          That would require a startup script.


          About option 2:

          Not easy at all.


          I do not say it cannot be done, but there is nearly no documentation about scripting CC Library libraries.


          Option 3:

          Why using libraries for placing barcodes?

          This could be scripted automatically if e.g. a hint is given in the layout what barcode file should be placed where.

          Could be a special text formatting for a barcode's name, could be other hints.


          For barcode generation with CS3 to CC and also batch processing barcodes with InDesign

          see e.g. Marc Autret here:

          Indiscripts :: BookBarcode


          Or for QR Code generation with CS4 and above see Jongware here ( read it all ):

          [Ann] QR Code for InDesign CS4 and up



          • 2. Re: Library Auto Populate?
            cbishop01 Level 2

            SOrry i didnt give you near enough info.  this will be "indl"The Barcodes are already Genereated i'm just placing them in the files

            • 3. Re: Library Auto Populate?
              Laubender Adobe Community Professional & MVP


              still not enough info.

              Show your current workflow with InDesign library files step by step.


              Questions: How is a given barcode file related to a document?

              Is it one barcode per document?


              Or are you doing a catalog of things where every item should show a barcode?

              Then there would be a part number or unique identifier of the item that should be related to a distinct barcode file.

              And then you could build a tabular structure where all information could go in.


              If the barcode file name is directly related to the part number and the part number is existing as part of a text frame in your InDesign document you could run a script that is directly placing the right barcode. For updates—changing in items and changes in text—the script could check if the right barcode is at the right place and if not updates the barcode image.


              No need for a library with placed barcodes.

              However, if you want to have library files, feed assets, replace assets and want to drag items to your page see into this:

              Adobe InDesign CS6 (8.0) Object Model JS: Table of Contents, Libraries Suite



              1 person found this helpful
              • 4. Re: Library Auto Populate?
                Loic.Aigon Adobe Community Professional



                That would be IMHO the play of a DAM to collect items that can be reused. There are mny DAM solutions currently able to work with InDesign (plugins) and I won't quote all of them. Just g…gle and see what is fine for you.


                Apart from that, you may consider a plugin of yours to monitor a folder regularly and display a list of injectables data. Howeverthat would only work with valid placeable formats.





                1 person found this helpful
                • 5. Re: Library Auto Populate?
                  cbishop01 Level 2

                  I'll paste Pictures of the workflow below.  After completing building a job.  We have our own Unique Barcode (Code 128) that is specific to that label.  The front office puts on a job (Which Generates the barcode) Different Barcodes for each job  > we build the label > Put the specific barcode for that job.  Our barcodes are for Inventory, and checking purposes. If there is a better way that you can think of to do this let me know.  Lets say this is label 1 it would have barcode 1234, If i build lable 2 now it will have a barcode 1235.

                  Screen Shot 2017-02-22 at 8.04.51 AM.png

                  • 6. Re: Library Auto Populate?
                    Loic.Aigon Adobe Community Professional

                    If you can presume of the context (meaning teh frame HAS the appropriate label, and barcodes are expected in the specific lcoation) then a script can do it. I was under the impression you were looking at a more UI dynamic solution.


                    That would be the idea, I let you develop.


                    var doc = app.activeDocument,
                    allPageItems = doc.allPageItems,
                    n = allPageItems.length,
                    while( n-- ) {
                      if ( allPageItems[n].label ="SomeBarCodeNumber" ) {
                      f = File ( "/some/path/to/barcodes/"+allPageItems[n].label );
                      f.exists && allPageItems[n].place ( f );
                    1 person found this helpful
                    • 7. Re: Library Auto Populate?
                      cbishop01 Level 2

                      I'll give this a try.  THank you