I have a CS4 project that was built on Windows. All of the Links are .tif files that have not been renamed. The Links panel shows long filenames including the paths, with backslashes. Here's an example:
\Company\2010\2010 Catalog Final\Section 3\Pictures\FILENAME.TIF
If I select the missing files in the palette and try to use Relink to Folder... from the Links panel and choose the new folder I have put all the Links in (with "Match same filename and extension" chosen as an option), InDesign reports "Failed to find X links in new folder. These links have not been relinked, and will remain selected in the Links panel."
The only thing that works is if I manually relink each missing item.
As I have about 400 items in each layout to relink, I am quite eager for an automated solution.
The files also always open with the following message: "Linotype FontExplorer version fc4 or newer could not be found." This refers to version 1.0fc4. Well, I happen to be running Lynotype FontExplorer and the plug-in version in my InDesign CS4 is version 3.09, so it definitely IS newer. How do I get rid of this message? (and it persists even if I export to an .inx file and reopen, as does the paths problem.)
I suggest you put a breakpoint in the relinking script that you've tried out, and examine the path that the code is really trying to relink to. If it works when you do it manually, it should work in the same way from script code.
What kind of changes have been made in the environment. Are the files simply moved (copied) from one place to another, and nothing else touched?