6 Replies Latest reply on Aug 25, 2008 3:23 PM by L. Guy O'Rojo

    JS How to select the "first" text frame on a page

    Tom Tomasko Level 1
      Hello,

      The following will select a text frame on the first page of a document. However textFrames.item(0) refers to the most recently created text frame, which is not very useful. Is there a property in the object model that allows for selecting the first text frame--based upon its position (highest and most left)--or must a clever script be written?

      app.activeDocument.pages.item(0).textFrames.item(0).select();

      Thanks,
      Tom