Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Label Links in Finder

Guest
Feb 17, 2015 Feb 17, 2015

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!

TOPICS
Scripting
363
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Feb 17, 2015 Feb 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

Translate
Participant ,
Feb 17, 2015 Feb 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 18, 2015 Feb 18, 2015
LATEST

Thanks a lot!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines