Updating Links in InDesign

Hi,
Well, my next goal is to make this blog better. I’m having my editor and graphic design friends look at it. I’d be happy to hear any comments.

In the meantime, here’s an applescript that updates modified links on multiple InDesign files. Be careful of the UILNever() handler. If the script bugs out, you should run the UILWithAll() handler (copy and paste just the code in Script Editor). The Never handler ignores all modal dialogs. In order to get them back, the WithAll handler resets to default settings.

Remember, you can use and adapt this script for any purpose, but you are responsible when you choose to run one. Always back up original files.

(OK, this script isn’t going to hurt anyone. Just being careful.)

tell application "Adobe InDesign CS3"
my UILNever()

set theDocs to (choose file with multiple selections allowed)

repeat with aDoc in theDocs
open aDoc

tell active document
set theLinks to (every link whose status is link out of date)
repeat with aLink in theLinks

update aLink

end repeat
end tell
end repeat
close every document saving yes

my UILWithAll

end tell

on UILNever()
tell application "Adobe InDesign CS3"
set user interaction level of script preferences to never interact
end tell
end UILNever

on UILWithAll()
tell application "Adobe InDesign CS3"
set user interaction level of script preferences to interact with all
end tell
end UILWithAll

See ya soon!

Advertisements

About this entry