1 Reply Latest reply on Nov 4, 2008 7:35 AM by Peter Kahrel

    [CS3 JS] Get filename of image in a labelled frame

    Skempy Level 1
      Hi,

      I can easily get the content of a labelled text frame using

      var myString = app.documents[0].textFrames.item("myLabel").contents;

      Is is possible to get the name of an image placed into a similarly labelled graphic frame?

      One way I thought of doing this is to look at the parent frame of each link in the document and test to see if it is labelled "myLabel" and then get the name of the linked file.

      There must be a simpler way.

      simon Kemp