Skip navigation
Currently Being Moderated

how to select all textframes

Oct 21, 2010 9:13 AM

Hi,

 

I am using Indesign CS4 version 6.0.6 on a macosx 10.6.

 

I want to select all text frames to check if they contain paragraphs without style.

 

I am using javascript :

            myAllTextFrames = myAllPages[myCounterPages].textFrames;

 

It gives me all textframes in the page but the textframes in groups in the pages are not included.

 

Is there a way to select all textFrames of a page nested in group (at any level, in a group in a group in a group...) or not ?

 

Regards,

Lionel

 
Replies
  • Currently Being Moderated
    Oct 21, 2010 9:56 AM   in reply to libarth1212

    Use the allPageItems (array) property and filter the TFs with a condition like: (myItem instanceof TextFrame).

     

    @+

    Marc

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 21, 2010 12:37 PM   in reply to libarth1212

    There is no reason to select while scripting. You can address them without selecting them.

     

    Use allPageItems to get an array of all page items at any level, and loop...

     

    Harbs

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 21, 2010 1:11 PM   in reply to Marc Autret

    That's odd.

     

    Your response came 50 minutes BEFORE the OP...

     

    Harbs

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2012 2:09 AM   in reply to libarth1212

    Hello can you help me for this problem... Even i am stuck in selecting the text frames in indesign using indesign javascript...

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points