3 Replies Latest reply on Jul 20, 2008 7:32 PM by myDwayneSmith

    [AS][CS2] getting link metadata as text

    myDwayneSmith Level 1
      Good day to you,

      I'm trying to get the 'description' metadata from a linked image so that I can add it to a text frame beneath the graphic frame (with script label "JanPic").

      I've tried variations of the script below getting the error "No Metadata information available."

      tell application "Adobe InDesign CS2"
      tell document 1
      set Janxmp to link xmp of item link of graphic 1 of rectangle "JanPic"
      set Jandes to description of Janxmp --also fails with 'format' and 'modification date'
      end tell
      end tell

      I'm clearly missing something fundamental.
      Any guidance would be greatly appreciated.

      Dwayne Smith