3 Replies Latest reply on Jan 17, 2012 5:30 PM by frameexpert

    Y Location of a Table

    frameexpert Level 4

      I have a situation where I have to process some tables in my document. Each page can have more than one table, but there is one table on each page that I need to target. It is the "first" table on the page, in other words, the top-most table on the page. I am using this to get all of the tables on the page:

       

      var tables = page.textFrames.everyItem().tables.everyItem().getElements();

       

      I need to identify the top-most table in this collection. It is not always the first table in the collection, so I can't rely on its position in the collection. Is there a Y location property on a table or one of its objects that I can use to determine the top-most table? Thank you very much.

       

      Rick