Copy link to clipboard
Copied
Dear all,
I have been using a script by Kasyan Servetsky for changing the link's path when I have to move my file to the hard drive to save cloud space.
This link has worked perfectly fine for the past few years, until today I tried to relink the file for my portfolio again, and it is showing this error. I tried deleting the scripts and restarting InDesign, and it still shows the same error. I don't have much knowledge, so I couldn't see why the code wasn't working.
Does anyone have an idea what is happening here?
Thank you.
Karen
Copy link to clipboard
Copied
Hi Karen, the script is relinking the newFile to update the link—you can’t just change the filePath to relink. The error seems to from the relink command failing. Can you successfully relink the missing file manually from the UI?
Copy link to clipboard
Copied
Hi Rob, I can manually relink each link but I always use this script to change the file path when I have to put my files on a hard drive. One document can contain hundreds of links there is no way I can relink everything manually which is why I found this script that can help me relink all the paths. I didn't understand why it didn't work all of a sudden.
Copy link to clipboard
Copied
But have you tried relinking some files to the same folder as when using script?
Are you on a Mac? Have you updated OS recently? Do you have write permission to the destination folder?
Copy link to clipboard
Copied
Yes, when I manually relink the file with the same folder as I was using the script - it works. It only doesn't relink when I use the script.
I'm on Mac, not yet updated to the latest OS. The file destination permission is on so I don't think this would cause the issue.
Copy link to clipboard
Copied
From the error dialog you posted, it looks like there is a newer version of @Kasyan Servetsky ’s script—see this page:
http://kasyan.ho.ua/indesign/link/restore_paths_of_links.html
The new dialog looks like this:
Copy link to clipboard
Copied
Hi! I downloaded the new version of the script and opened it in InDeisgn, the dialogue is still the same one I had before, not the one like your screenshot which I'm not sure why.
Additionally, the new script also shows the same error with this line of code,
currentLink.Relink(newFile);
Copy link to clipboard
Copied
Can you show us an example of the full path to your linked files ?
Copy link to clipboard
Copied
There are two links on the page I posted-- to the new and old versions.
Copy link to clipboard
Copied
Hi @Karen JR , Very sorry the link I posted was to the wrong page, should be this:
http://kasyan.ho.ua/indesign/link/relink.html
I may have just added confusion—this is a different script so it may or may not work for you
Copy link to clipboard
Copied
One of these scripts might help...
https://www.marspremedia.com/software/indesign/links-grep-relink
https://www.marspremedia.com/software/indesign/links-relink-subfolders