Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Help – Export linked images – sorted in folders by page number

Return to Member Forum

  • Author
    Posts
    • #1212962
      Anonymous
      Inactive

      Hi we often have to process large multipage files, and need to process the images, its very slow to manually go page by page click links and export them. Is there a way or tool which would export links organized in folders by page number? for catalog of hundreds of pages, its very time-hungry to identify images for each page, page by page

      I desperately need an automation method to get it organized.

      Currently the best I can do is use the free ID Util as its faster as indesign for this, but still have to go image by image, and click show, and copy it somewhere

      is there a tool or script for mac?
      please save my life somebody

    • #14323429
      David Blatner
      Keymaster

      What do you mean by “export” the images? Are they embedded in the file?

    • #14323426
      Jason Mull
      Member

      Hello Peter, is this what you are looking for? At least it may get you started so you can figure out another solution.

      https://kasyan.ho.com.ua/indesign/link/links_report_to_csv.html

    • #14323425
      Robert Ploch
      Member

      Hi Peter,
      try this snippet of code … I hope I’ve understood your idea :) In my test environment it works ! I’ve put .AI .PDF and.JPG graphic files.
      This solution copy the link from original path and put it in folder named page’s numer and relink to the new copied file …

      If you will need some modifications just write :)

      Best regards Robert

      var doc = app.activeDocument, pages = doc.pages, i = pages.length;
      var docName = doc.name, docPath = doc.filePath;

      while ( i– ) {
      var g = pages[i].allGraphics, j = g.length;
      while ( j– ) {
      var pageName = g[j].parentPage.name;
      var link = g[j].itemLink;
      var newFolder = new Folder( docPath + ‘/’ + pageName + ‘/’ );
      if ( !newFolder.exists ) {
      newFolder.create();
      }
      newFolder.create();
      newLinkFile = new File( newFolder + ‘/’ + link.name );
      if ( !newLinkFile.exists ) {
      link.copyLink( newLinkFile );
      }
      }
      }

    • #14323424
      Robert Ploch
      Member

      in case of problems with copy and paste the code into e.g. ExtendSrpipt Toolkit, write me please you e-mial, so I’ll send you the script file.

      regards
      Robert

    • #14323423
      Robert Ploch
      Member

      the second occurrence of line :

      newFolder.create();

      is to delete, of course :)

    • #14323417
      Anonymous
      Inactive

      hi robert u saved my ass a lot of pain, great, i managed to fix what the forum changed to get it wotk
      (for anyone looking into it there needs to fix quotes, 2 minus signs in while brackets)

Viewing 6 reply threads
  • You must be logged in to reply to this topic.
Forum Ads