Apply Paragraph Styles

Viewing 2 reply threads
  • Author
    Posts
    • #97080

      Hi there…

      I am to apply a paragraph style to all the text in all the stories.

      I want to know two things…
      1. How to make the JavaScript to go to individual story and select the text. I can use myDocument.stories.item() to get to each story. But how to select the text in the story?

      2. Is there any other easy way to apply Paragraph Styles to all stories in a file.

      Thank you in advance

    • #97082
      Loic Aigon
      Member

      Yes and good new is that you don’t really need a script. GREP will do the trick:
      Find: .+
      Replace :$0
      change options : new paragraph style

    • #97083

      Loïc,

      A different behavior :

      Find: \X*
      Replace format by: para style

      Will especially include blank paras! ;-)

      … But the 2 ways won’t be enough! … The blank cell in a table won’t be taken!!

      (^/)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>