0 Replies Latest reply on Jul 3, 2013 10:10 AM by hand50

    How do I automate looping through links in a directory?

    hand50

      My organization is trying to automate iterating through images in a directory and exporting each iteration as a PDF.  I have been doing some research on creating a JS but am in need of assistance.  Here is my basic layout.  I have 6 images on two pages, each image is linked to and jpg in a different folder.  For example:

       

      C:\\\Folder1 -> Image1.jpg

      C:\\\Folder2 -> Image1.jpg

      C:\\\Folder3 -> Image1.jpg

      ...

       

      Is there a way using JS, to tell InDesign to replace all 6 links with the next image in the corresponding folder then export as a pdf?