I am trying to find out if it is possible to relink images with applescript. My problem is this we currently have a production server called “production” where all live production is carried out once the job is finished it is moved to another server which for example is called “archive”, if you open a illustrator file on the archive server you will have broken links, all the path information is exactly the same apart from the server name. i know we could move the jobs back to our production server and the links would work again but this is not possible for various reasons.
You can get and set link path. So script would go like this.
property NewServer : "Archive"
tell application "Adobe Illustrator"
open document (choose file) without dialogs
tell document 1
set OldFile to file path of placed item 1
set AppleScript's text item delimiters to {":"}
set NewFile to NewServer & ":" & rest of (text items of OldFile)
set file path of placed item 1 to file NewFile
end tell
end tell
Make it into Droplet and it would be useful. You would have to get every placed items, repeat changes in list then close. Move on to next file.
Need help just ask.