1 Reply Latest reply: Jun 25, 2010 11:42 AM by Dave Saunders RSS

    Find Inline textFrames/nonlinked

    Oviya... Community Member

      Hai Friends

                          how to find inline[floating] text frames in InDesign CS4 using script

        • 1. Re: Find Inline textFrames/nonlinked
          Dave Saunders Community Member

          I believe that this will give you all the anchored text frames in the frontmost document:

           

          app.documents[0].stories.everyItem().textFrames.everyItem().getElements();
          
          

           

          in an array. To filter out those that are not actually inline (i.e., use a different kind of anchoring), you'll need to look at the

           

          anchoredObjectSettings.anchoredPosition
          

           

          of each item in the array. If that returns AnchorPosition.inlinePosition then you have an inline text frame.

           

          Dave