5 Replies Latest reply on Jul 7, 2016 8:48 AM by Johnwhite

    Find and change para style error

    Johnwhite Level 1

      Hi experts,

       

      How can I make this script correct?

       

          app.findGrepPreferences = app.changeGrepPreferences = null;
          app.findGrepPreferences.findWhat = "^\\s$";
          app.findGrepPreferences.appliedParagraphStyle = "Line_0.5";
          app.changeGrepPreferences.appliedParagraphStyle = "Line_0.5 Color";
          app.selection[0].changeGrep();
          app.findGrepPreferences = app.changeGrepPreferences = null;   
      

       

      thanks

       

      Regard

      John