2 Replies Latest reply on Jun 26, 2012 10:27 AM by gumfairy1

    find and replace paragraph style

    gumfairy1

      I am creating a javascript for InDesign in order to search and replace some text. The text I am looking for has to be in a certain Paragraph style.

       

      This is what I have so far:

      app.findTextPreferences = app.changeTextPreferences = null;

      app.findTextPreferences.findWhat = '^p'

      app.changeTextPreferences.changeTo = ';'

      app.activeDocument.changeText();

       

      I need to find/change a return of a certain paragraph style to a semi colon. What is the script that I would use to search for paragraph style?