1 Reply Latest reply on Nov 21, 2014 4:03 AM by Chinnadk

    How to apply style with grep script to finding question mark

    hamdifem Level 1

      app.findGrepPreferences = app.changeGrepPreferences = null;      

      app.findGrepPreferences.findWhat = "\?";

      //app.findGrepPreferences.SpecialCharacters = SpecialCharacters.QUESTION_MARK;

      app.findGrepPreferences.appliedParagraphStyle = "myParS";

      app.activeDocument.changeGrep(); 

      app.findGrepPreferences = app.changeGrepPreferences = null;