Skip to main content
New Participant
July 22, 2020
Answered

Find/Change Linked Images (All Documents)

  • July 22, 2020
  • 1 reply
  • 2577 views

Hi there,

 

I'm part of a project where we have to take one design and build out about 60 versions in different sizes.  Oh yeah, and that one design, there's about 200 of them.  And of course, everything needs to be done as soon as we possibly can.  The one thing that might help a little is at least a few designs are similar except for a slight change in copy, which we can deal with using Find/Change across all open documents, and a few image swaps.  Is there a way to use that Find/Change for linked images?  

This topic has been closed for replies.
Correct answer brian_p_dts

Sorry for my miscommunication.  And most of the text boxes are already set to auto-fit, and the images are close enough in size they should be fine.  Unfortunately, the only script I've been able to find only works one document at a time, which, I can't figure out the advantage of that.


This is pretty rudimentary, but something like this should work assuming that the same file is linked across the documents. First you'd be prompted to select a folder where all the indd docs live. Then you'd choose the image file that you want to replace, then you'd be prompted to choose the file you want to replace it with. 

 

 

var fol = Folder.selectDialog("Choose the folder with indd files");
var inddFiles = fol.getFiles("*.indd");
var oldImage = File.openDialog("Choose the image to replace");
var oldImageName = oldImage.name.replace("%20"," ");
var repImage = File.openDialog("Choose the new image");
for (var i = 0; i < inddFiles.length; i++) {
    try {
        var doc = app.open(inddFiles[i]);
        var link = doc.links.itemByName(oldImageName);
        link.relink(repImage);
        link.update();
        doc.close(SaveOptions.YES);
    } catch(e) {}
}

 

 

 

1 reply

Steve Werner
Community Expert
July 22, 2020

Find/Change can't help you with that but you should explore using the Content Collector tools which are designed for your kind of workflow:

 

https://helpx.adobe.com/indesign/using/linked-content.html

 

Here's a tutorial video to help you out:

 

10:20Content collector tools in InDesign CS6 | lynda.com

 

aDavidAuthor
New Participant
July 22, 2020

That's definitely helpful for building initial pieces, but it doesn't really help with the problem I'm hoping to solve.  The problem is that when all is said and done, I'm going to have about 60 individual documents, all laid out perfectly, but with an image that needs to be replaced with a different one across those 60 documents.  

 

Either way, they'll have to be looked at to make sure the placement of the image is all right, but it would be helpful to find a way to quickly have that image placed automatically, just to save the hasstle of placing the image over and over again.  

 

It's one of those things that isn't that difficult or time consuming to do, but when it has to be done 60ish times multiplied by five or six different layouts, working with links that have to live on a remote server, the time adds up.

Steve Werner
Community Expert
July 22, 2020

You're asking two questions:

(1) How do you place an image automatically on each document? But if there are 60 different versions each with different dimensions, how can you automate that? Using the Content Placer seems to make it about as automated as you can do it, it seems to me.

 

(2) How do you replace that common linked image on each document? If the replacement image is the same size, then you just update the image with another of the same name, and do a quick update on each document. If the replacement image is a different size, that's a different question. The Content Aware Fit command would probably help with that.