5 Replies Latest reply on Jan 20, 2015 4:55 AM by Teetan VK

    How about the grep command must be written

    hamdifem Level 1

      M1.jpg

      as the picture taking comma reference

      first to the right square brackets "["   or   open parenthesis "(" and left first square brackets "]" or open parenthesis ")"

      character style How to apply

       

      var doc = app.activeDocument;  
      app.findGrepPreferences = app.changeGrepPreferences = null;       
      app.findGrepPreferences.findWhat = "(\\[|()(\\.)(?=\\w)"; \\???
      app.changeGrepPreferences.changeTo =  \\???
      app.changeGrepPreferences.appliedCharacterStyle = "myChar";  
      doc.changeGrep();
      app.findGrepPreferences = app.changeGrepPreferences = null;