5 Replies Latest reply on Nov 26, 2014 2:10 AM by hamdifem

    How to apply bold character style with grep

    hamdifem

      finding bold characters in a particular paragraph style

      I want to apply a character style

       

      app.findGrepPreferences = app.changeGrepPreferences = null;
      app.findGrepPreferences.string = String.Bold;
      if (app.findGrepPreferences.appliedParagraphStyle == myPar) {
      app.changeGrepPreferences.appliedCharacterStyle = myCar1;
      app.activeDocument.changeGrep();
      app.findGrepPreferences = app.changeGrepPreferences = null;