Skip to main content
Inspiring
February 23, 2021
Answered

Can I find out which graphic files (links) in a directory are unused?

  • February 23, 2021
  • 1 reply
  • 519 views

I have collected all graphics files for a project in a single directory, so that the whole project becomes easily movable and easily works on IDML import/export. But over time, that directoy has grown to 620 images, whereas only 450 or so are actually used.

 

I'd like to prune this and I'm looking for an efficient way to do that. Is there? Some sort of export of the ID file that would allow me to grep the image file names in some way?

This topic has been closed for replies.
Correct answer Jens Trost

You could simply package the InDesign file (via File -> Package) to another location (and then moving it back).

1 reply

Jens Trost
Jens TrostCorrect answer
Inspiring
February 24, 2021

You could simply package the InDesign file (via File -> Package) to another location (and then moving it back).

Inspiring
February 24, 2021

That was it. Thank you.

 

Without moving it back, just packaging gives me a way to find out which ones are superfluous (which is what I'm after). Just removing them once is not enough, the images are automatically produced elsewhere (then referenced in the document as needed). Packaging gives me the possibility to find a clean list (ls -1) and prune the actual image production process accordingly.

Jens Trost
Inspiring
February 24, 2021

Do you actually just need a list of linked assets?

Then a little script would be a better solution (happy to write it down if that's indeed what you need).