I don't find a script or tricks to do that, i would like to replace ALL images by other folder (with different images).

exemple: i made a template with 4 box who contain the same image : toto.jpg, toto.jpg, etc.. And i would like to replace by multiple different image of a folder.

If i do this by Import, i need to click manually on each images to replace... this is bad

  • If the images have the exact same names you can overwrite the linked files with new ones. If you want to relink all instances of an image with another it's possible in the links panel. Perhaps you could be a little more specific in what you are trying to achieve?
    – Wolff
    Commented Mar 26, 2021 at 16:49
  • Are you looking for the Relink to folder option? That allows you to select any number of links in the Links panel, choose a different folder, and then it will look for identically named files for all the selected links to in that folder and relink all the ones it finds. Commented Mar 26, 2021 at 19:17
  • Regarding the latest info you added (as an answer, but I hope you'll edit your question and include it there). You say you want to relink one image with three images. I don't understand exactly what you mean by that. An image can only be relinked to one other image. Is something supposed to happen in between the relinking or is it because you have three instances of the same image which you want to replace with three individual images? Could you perhaps post a visual before and after example?
    – Wolff
    Commented Mar 27, 2021 at 14:58
  • It’s still completely impossible to figure out what you’re actually looking for here. Your vague wording makes it a guessing game how many different images and folders you have, how many you want there to end up being, and what logic should be behind the relinking. As it stands, your question basically reads, “I have some linked images that I want to have automatically relinked; how do I do that?”, which is unanswerable. Commented May 2, 2021 at 20:20

3 Answers 3


InDesign will auto-grab links from a folder actually named "Links", which should exist next to the INDD source file.

So what you can do is to have different folders named "Links1", "Links2", "Links3", "Links4", and so on. Rename any of these folders to just "Links" and that should auto-update the InDesign linking.

Then go in the Links panel, select all of them and hit the Update button.

  • Thanks for answer, but that dont resolve the problem. i hve multiple box with the same image template like default.jpg. So the folder is Link1 > default.jpg. I would like to replace by folder Link2 > image1, image2,image3. I search a script or someting like that, if someone know ?
    – Kerinno
    Commented Mar 27, 2021 at 12:44

It can be done via scripting, but why for? Just rename the folder Links1 to Links and reopen the document. Then, If you need, rename the folder Links back to Link1 and rename the folder Links2 to Links. And reopen your doc again. And so on.

The script does just the same thing:

Initial folders: Links, Links2, Links3, Links4

Run script 1: Links <-- former Links2, Links1 <-- former Links, Links3, Links4

Run script 2: Links <-- former Links3, Links1, Llinks2 <-- former Links, Links4

Run script 3: Links <-- former Links4, Links1, Links2, Links3 <-- former Links

Run script 4: Links <-- former Links1, Links2, Links3, Links4 <-- former Links


var doc = app.activeDocument;

var base_path   = doc.filePath;
var base_name   = "Links";
var base_folder = Folder(base_path + "/" + base_name);
var names       = ["Links1", "Links2", "Links3", "Links4"];

// circular check and renamimg folders
var i = 0
while (true) {
    var prev_folder = Folder(base_path + "/" + names[i]);
    if (!prev_folder.exists) {
        if (i < names.length-1) i++; else i = 0;
        var next_name = names[i];
        var next_folder = Folder(base_path + "/" + next_name);
    if (i > names.length-1) break; // just in case

// update all links
for (var i=0; i<doc.links.length; i++) {
    if (doc.links[i].status == LinkStatus.linkOutOfDate) doc.links[i].update();

You don't need any scripting. Unless, of course, I've misread the question.

  • InDesign Links Panel

  • Highlight a link to replace

  • From the Links Panel Menu choose Relink to Folder

  • Navigate to an select the new folder, and the specific image you are relinking, and hit OK

  • You will be asked if you want to relink other images found in that new folder if they match names of existing links. Just hit Relink or whatever the "Yes" option reads.

  • Done.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.