lohriialo / indesign-scripting-python

Scripting in InDesign is used to automate a wide variety of repetative task or as complex as an entire new feature
145 stars 26 forks source link

Example for iterating through document structure #6

Closed CrudeRags closed 4 years ago

CrudeRags commented 4 years ago

Hi Lohriialo,

Thank you for the great examples. Can you provide an example for navigating?

Structure to navigate:

       Document 1
           Page 1 
               Paragraph 1
               Paragraph 2
           Page 2
              Paragraph 1
       Document 2
           Page 1
               Paragraph 1

I would like to know how to iterate through all the paragraphs of this book.

CrudeRags commented 4 years ago

Basically I want to iterate and add text to the end of all paragraphs having a specific style. I am not sure how to use the api documentation.