Have you ever tried renaming your server or moving your Indesign files to a new place and have all the links go missing? Your image files may have had a file path like:
and the new files have been moved to your archive server like this:
The filing structure is the same except that the address starts from “Archive” instead of “Current_Jobs”. However Indesign has no idea where to look for those links. Wouldn’t it be great if you could simply update the file path of every image, changing “Current_Jobs” to “Archive”? Well guess what? There is now.
This AppleScript adds a new “Search and Replace” function to Indesign. It searches and replaces text elements within the file paths of your placed images.
The script remembers the last search and replace terms you used so you don’t have to re specify it every time
Every matching link will be updated to the new place. Note that this will only work if the folder structure is indeed the same after the server name. This is typically the case if you have renamed your server or moved a whole lot of folders to a new place on a server. If the script does not find certain files in the expected location, they will be skipped. The same for the files that were initially located somewhere else. The script is highly specific and will only target the file paths where the search term is found. It does this very quickly since there is no searching involved.
You can run the Indesign Search and Replace Link Paths script and replace any segment of the file path – it doesn’t have to be the first part (parent directory). It can be any folder within the file path. It can even be multiple folders. For example, if your original location was:
and your new location is
Simply enter those two folder chains into the search and replace fields remembering to keep the colons (:) in between each segment name. Search for “Earnest:Users:dm1:Desktop” and change it to “Archive1:2017_Jobs”
Note that you have the option to process all the links in the current document or ALL open documents
This script even works for file names too. Imagine if you have a whole lot of images with the suffix “_LowRes” at the end of their filenames. Then you make a whole set of new files with “_HighRes”. Use these two search and replace fields to update all images with “_LowRes” to the corresponding “_HighRes” file. The files would all need to be located in the same folder in this case.
A progress bar and conclusion message keep you informed of what is going on.
Note this is an AppleScript for using on a Mac. There is no PC version at the moment.
Technical support replies within 24 hours. Suggestions and customisations welcome. Free updates as they occur.
What if your folder hierarchies are messed up?
If your links are in a disordered state and you don’t really know where they are apart from somewhere within a top level folder structure which may contain hundreds or thousands of subfolders, you might do better with the Indesign Image Relinker Script also available at Dr Scripto. This will actually search through every subfolder, find your lost images and relink them to Indesign.