4 Replies Latest reply on Jan 27, 2009 11:10 AM by frameexpert

    [CS4 JS] Shortcut to page object from paragraph

    frameexpert Level 4
      I have the index markers inside of paragraphs that can be directly in a story, but can also be inside of tables and anchored text frames. Is there a shortcut way of getting the page object of any paragraph? Right now, I am using this

      $.writeln(index.allTopics[i].pageReferences[0].sourceText.parentTextFrames[0].parent.name) ;

      This works unless the text is nested deeper than the basic story. Thanks in advance.

      Rick Quatro