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

[AS] How can i get the path to selected image(s) with Applescript?

Explorer ,
Apr 02, 2015 Apr 02, 2015

I've tried this, but it does not work.

tell application "Adobe InDesign CC 2014"

  set myDocument to active document

  set selectedRectangles to selection of myDocument

  set theGraphicsLink to file path of item 1 of selectedRectangles

end tell

I hope someone can help me.

TOPICS
Scripting
863
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
Participant ,
Apr 03, 2015 Apr 03, 2015
LATEST

-- This works in CS6:

tell application "Adobe InDesign CS6"

  set myDocument to active document

  set selectedRectangles to selection of myDocument

  set theGraphicsLink to file path of item link of (graphic 1 of (item 1 of selectedRectangles))

--> "Macintosh HD:folder/folder/filename.tif"

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