Script to copy images into file and automatically distribute them in the target document
I am facing a task I’ve faced many times before, but this time on rather a large scale and with very little available time, namely to generate files for a press proof of all the images that will appear in a book, so we can check colour accuracy, etc., before printing.
The book has around 600 images spread out over 18 different InDesign documents gathered in an InDesign book.
The goal is to take all those 600 images, copy them into a separate target document with the dimensions 700 × 1000 mm, and have them placed/distributed in the target document as few pages as possible by reducing white space between the images (but without overlapping or changing their size from the source documents). Ideally each image should have a caption that includes its file name and the page number it appears on in the source document.
This sounds very much like a job for a script, but there are quite a few elements of it that would be unfamiliar territory for me, in particular distributing the images to minimise white space – I have absolutely no idea how to even start approaching that.
Does anyone know of a script that does something along those lines that I could tweak to make it do what I’m after?
(ExtendScript preferred, since I’ve still not got the hang of the UXP workflow.)


