8 Replies Latest reply on Mar 24, 2010 3:31 PM by sstanleyau

    [AS][CS4]How to find all text frames, even if they are grouped with others?

    jaguar 0006

      Hello,

       

      My AppleScript seeks all the text frames of the document which have the label SearchedLabel. For this, I use this code:

       

      tell application "Adobe InDesign CS4"

      set MyDocumentIndesign to document 1

      tell MyDocumentIndesign

       

      set FoundItems to (page items whose label is SearchedLabel) -- Note : the same label can be used more than one time in the document.

      repeat with CurrentItem in FoundItems

      ...

       

      This works, except when the text frame is grouped with other items.
      How to do to find all the text frames, even if they are grouped with others?
      Thomas