November 6 2009 • 5:09 AM

Create a List of Linked Files

“How can I export a list of all the images I’ve placed into my InDesign CS4 file?” asked one of the attendees at the InDesign Conference (winding up today in Washington DC)  yesterday.  “I need to send a text file of these to my client’s vendor with every job.”

Mike Ninness was on the stage, pausing between tips he was demo-ing for his “Power Keyboard Shortcuts” session, and started looking around the interface. A Print icon in the Links panel status bar? No. An “Export Link Names” command in the Links panel menu? No.

In InDesign CS3, the attendee said, she could copy each link name one by one from the Link Information dialog box and paste them into a text file.  But you can’t do that with CS4’s Link Info panel.

Mike was ultimately unsuccessful, and none of the suggestions other audience members (including myself) suggested were entirely satisfactory. The closest we came to a solution was another attendee’s suggestion to choose File > Package, click the Report button, then click the Cancel button to cancel the package. InDesign still creates a Package Report text file which lists every image used in the file, which is good, but the names are buried in lots of other information for each linked file, which was not the push button solution the first attendee was hoping for.

Noha to the Rescue

Luckily, Noha Edell (Adobe’s wonder woman of the east coast) was in the audience, and she remembered that at a recent Washington D.C. InDesign user group meeting, someone had demo’d a script that came close to what the conference attendee needed. Noha e-mailed the user group member last night and asked him if he could tweak the script and send it on so she could make it available to the conference audience (via this post to InDesignSecrets) today.

So … we aim to please! You can download imagescripts.zip and then unzip the file. You’ll have two AppleScripts (sorry Windows users) written by Hanaan Rosenthal that you can drop into your InDesign Scripts folder.

Then, when you want to create a text file of the filenames in your Links panel, open your Scripts panel (Window > Automation > Scripts) and double-click either Print Links Simple.scpt or Print Links Advanced.scpt entry to generate a text file.

On the left is the result of the Simple script, on the right the result of the Advanced script. So, thank you Noha and Hanaan!

19 Responses discussing this post. Add yours below.

  1. November 6th, 2009 • 5:23 am • Link

    Hello,

    Perhaps this script, due to Loïc Aigon (Link report to CSV) do the same think (Get a CSV file reporting all the data about the graphic files used in your Indesign document for further analysis) for Windows users. You can find it here : http://loicaigon.com/en/auto.php
    (Automation > Scripting > 9/10)

    Best

  2. Jennie
    November 6th, 2009 • 7:20 am • Link

    Thank you! Thank you! Thank you! What a great script!

  3. November 6th, 2009 • 8:35 am • Link

    Another thing that would work would be to autotag the document via the tags panel, export the XML, and run a little XSLT to tease out all the figure elements. You’d have the file name and path, but not the format and size.

    A truly righteous solution would be a little Flex reporting app that could query IDML from a document. You could select any combination of placed graphics parameters and tell it to output a report listing them. Man, I gotta learn Flex. I can picture all this stuff, but I can’t make it!

  4. Joe
    November 6th, 2009 • 9:23 am • Link

    I found a script that can do this just a couple days ago on your site.

    LinkExportPro which also lists page numbers and file path.

    http://www.indesignsecrets.com/downloads/LinkExport_Pro1a_EN.jsx

  5. November 6th, 2009 • 12:11 pm • Link

    Joe … weird! It must be buried in a comment someplace. Thanks for the heads up.

    I just tried it, and you’re right, it works fine, especially if you need that extra info. If you don’t, it just takes a few seconds to delete the extraneous information line by line. (I think I’d be inclined just to use the Simple script above in that case.)

    I’m glad the script’s tooltip told me where to look for the text file though (same folder as layout file). I had been hunting for awhile. ;-)

  6. David Blatner
    November 6th, 2009 • 1:52 pm • Link

    For more information and script options see this 2007 post and Steve Wareham’s ListLinks script (which is, I think, also included in the Blatner Tools public beta, under the Extras menu… or if it’s not yet, then it will be in the final release).

  7. Patricia
    November 7th, 2009 • 7:58 am • Link

    I’m the attendee that made the query about the ability to generate the list of images. And the script created ROCKS. It’s exactly what I wanted, simply and straight forward.

    It’s no fuss, no muss and none of that superfluous information that other methods produced.

    Thank You.

  8. November 8th, 2009 • 7:10 am • Link

    OK… how about a Part 2 for this: Hyperlinks.

    I had a large project and the client was curious how many hyperlinks were included. (There were around 100 or so across different documents in the book.)

    I would have thought there was an easy way to get this info either in InDesign or even Acrobat without staring at the Hyperlinks panel and counting links.

    The closest I found was some sort of voodoo that you needed to do in Terminal.

    When I’m at my work computer, maybe I’ll find that Package does do that. Or am I just missing something obvious?

  9. November 8th, 2009 • 9:53 am • Link

    Patricia, you’re welcome! I knew you were after the “no fuss” method. ;-) Glad it worked out.

    Mike, I don’t know of any way to do that, sorry to say. The Package report doesn’t list hyperlinks, just linked files … stuff that’s important to printing the job.

    The only suggestion is to use the “old faithful” method. If all your links have “http” in them, for example, do a document-wide Find/Change, finding http and replacing with http (so nothing is actually changed). When you click Change All, ID will tell you how many changes there were. Or if you used a hyperlink character style, you could Find/Change on that format, clicking Change All to get the count.

  10. November 8th, 2009 • 12:57 pm • Link

    Ah… that’s a clever workaround, Anne-Marie.

    Thanks.

  11. Andy
    November 9th, 2009 • 12:42 pm • Link

    Snagit will capture and save editable text on a widows machine. I’ve not found an equal on the Mac side. I use it to get lists of my book files.

  12. Ginni
    November 9th, 2009 • 4:04 pm • Link

    This is a great tip.

    On another subject – I posted a question here last week, and I have no idea where or how to find out if it was answered. Can anyone help me with that? (please don’t laugh at me).

    Thanks!

  13. David Blatner
    November 9th, 2009 • 9:01 pm • Link

    @Ginni: Sorry, but I don’t see any previous comment/question. Perhaps it didn’t go through. Or perhaps you posted it on another site? (No laughing! Trying to help.)

  14. Ginni
    November 10th, 2009 • 5:03 pm • Link

    No laughing … you didn’t laugh at me (you didn’t, right?)

    I did post it here – I swear.

  15. November 11th, 2009 • 12:56 pm • Link

    Ginni, I just did a search of our database. Before the posts on this thread, your most recent post was from back in June:
    http://indesignsecrets.com/indesignsecrets-videocast-4-table-feature-enhancements.php/comment-page-1#comment-476240

    So … maybe you wrote a comment and forgot to click Submit? I’ve done that.

    Why don’t you wait until our forum opens (later today) and post your question there? It’d be the perfect place. When it’s live, you’ll see a “Forum” link in the grey navigation bar at the top, to the right of the Videocast link.

    AM

  16. Austin
    December 30th, 2009 • 10:02 am • Link

    All these scripts seem to choke on any graphics placed inside a table. Are there any solutions to dealing with that?

    Thank you

  17. March 1st, 2011 • 8:44 pm • Link

    Awesome tip – saved me hours!

  18. December 19th, 2011 • 11:17 am • Link

    Thank you! This is superb.

  19. Faith
    January 12th, 2012 • 2:54 pm • Link

    I just stumbled on this script. What a time-saver!!

Subscribe to the Discussion

Get the ongoing discussion surrounding "Create a List of Linked Files" delivered to you. Click here to subscribe via RSS.

Leave a Reply

You can use limited HTML tags, such as <em></em> for emphasis/italics and <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

InDesignSecrets reserves the right to edit and/or remove posts and comments.