2 Replies Latest reply on May 1, 2012 9:39 PM by SangeethaRajeshkumar

    select the red color text

    SangeethaRajeshkumar

      Hi,

       

      How to select the red color text in indesign file. In the below code i can only get the count.

       

       

          app.findGrepPreferences = NothingEnum.nothing;

          app.changeGrepPreferences = NothingEnum.nothing;

          app.findGrepPreferences.fillColor='Anotada';

             

          var result = Number(app.activeDocument.findGrep().length);

          if (result>=1){

              alert (result);

              myReport += result + ' Anno Cyan found in this document';

          }

       

       

      Regards,

      Sangeetha