13 Replies Latest reply on Jun 9, 2009 5:43 AM by Kasyan Servetsky

    [JS] [CS3] Getting references of items

    Roy Marshall Level 1

      Hi

       

      I am working with an InDesign file that has been built with an applescript.  The page contains a mixture of text and image frames, drawn in a grid style (see attached).

      I need to somehow be able to toggle through each item, and get a reference on the order the object was drawn on the page. When I get all items:

      myDocFrames = myDoc.allPageItems;

      the order the page items are returned is NOT the order they were drawn on the page.  Is there another reference, maybe an ID number that I can use to act as my reference?
      Once I can work to some order, I can then decipher which is an image, which is a text frame, and do what I need to do.
      Thanks all,
      Roy