I have a InDesign document with some images. Some images are linked from the path of indesign document and some images linked from other location. I want to copy those images to indesign document path which linked from other location and re-link all images.
I can update the all the link no issues with that. I got stuck to copy images if not linked from the indesign document path.
tell application "Adobe InDesign CS3"
set folderPath to (file path of document 1) as text
tell document 1
repeat with oneLink in (get links)
set linkPath to file path of oneLink
if linkPath is not (folderPath & name of oneLink) then
tell application "Finder" to set movedFile to (move file linkPath to folderPath) as alias
relink (contents of oneLink) to movedFile
update oneLink
end if
end repeat
end tell
end tell