0 Replies Latest reply on Sep 16, 2015 5:08 AM by samg1988

    Import images to page, then add images to library.

    samg1988

      Hi all.

       

      Im looking for some help to create a script that performs the following actions.

       

      1. Open a library of choice.
      2. Import images from a folder of choice onto the page.
      3. Add images from the page to the library excluding items that already exist.

       

      I've been able to get snippets of this working using various scripts... but its all pretty ropey.

       

      For example... this script will add items on the page to a new library I can create, but I cant figure out how to add to an existing library.

       

      var currentPage = app.activeWindow.activePage;
      var MyLibrary = app.libraries.add(File("C:/Users/Me/Desktop/bananas.indl"));
      currentPage.pageItems.everyItem().store(MyLibrary);