4 Replies Latest reply on Jan 8, 2014 1:02 PM by camilo umana

    Help: how to fix a line in this script (almost good) for change text to real UPPERCASE?

    camilo umana Level 1

      app.findGrepPreferences = null;

      app.findGrepPreferences.findWhat = '\\l\\l+';


      foundList = app.activeDocument.findGrep(true);

      for (i=0; i<foundList.length; i++)

        foundList[i].changecase (ChangecaseMode.UPPERCASE);



      The idea is to select the magenta words in scaps to be setted in uppercase.

      The problem is the script (based in Jongware and P. Kahrel)  is converting all texts to uppercase not assuming the condition under “SC" character style.

      instead, it is changing all the text: