Skip to main content
February 17, 2015
Answered

Label Links in Finder

  • February 17, 2015
  • 1 reply
  • 372 views

Hey there,

is there a Indesign Script to mark all Indesign Links colorful in the Finder or do i need a AppleScript for this issue?

Thanks a lot!

This topic has been closed for replies.
Correct answer AS Scripter

--This works in CS6 and OS X 10.9 Mavericks:

tell application "Adobe InDesign CS6"

  tell document 1

  set l to every link --gets all link references

  set fp_list to {}

  repeat with theLink in l -- make a list of all file paths

  set fp_list to (fp_list & file path of theLink)

  end repeat

  end tell

end tell

tell application "Finder"

  repeat with fp in fp_list -- set each file's label

  set label index of file fp to 6 -- Green -- 1=Orange, Red, Yellow, Blue, Purple, Green, 7=Gray

  end repeat

end tell

1 reply

AS ScripterCorrect answer
Inspiring
February 17, 2015

--This works in CS6 and OS X 10.9 Mavericks:

tell application "Adobe InDesign CS6"

  tell document 1

  set l to every link --gets all link references

  set fp_list to {}

  repeat with theLink in l -- make a list of all file paths

  set fp_list to (fp_list & file path of theLink)

  end repeat

  end tell

end tell

tell application "Finder"

  repeat with fp in fp_list -- set each file's label

  set label index of file fp to 6 -- Green -- 1=Orange, Red, Yellow, Blue, Purple, Green, 7=Gray

  end repeat

end tell

February 18, 2015

Thanks a lot!