1 Reply Latest reply on Jun 29, 2011 8:03 AM by Peter Kahrel

    Using find/change in Indesign CS4

    momomaupin

      I am needing to change date colors for a calendar.  That for instance for the Month of June the 1,4,7 &10 need to be in red, 2,5,8,11 need to be blue and 3,6,9, & 12 need to be green.  Does anyone know of a way to do this without having to enter each individual date?  Thanks so much!

        • 1. Re: Using find/change in Indesign CS4
          Peter Kahrel Adobe Community Professional & MVP

          Something along these lines:

           

          app.findGrepPreferences = null;

           

          app.findGrepPreferences.findWhat = "\\b(1|4|7|10)\\b";

          app.changeGrepPreferences. // appliedColor or swatches or whatever = "red"

          app.activeDocument.changeGrep();

           

          app.findGrepPreferences.findWhat = "\\b(2|5|8|11)\\b";

          app.changeGrepPreferences. // appliedColor or swatches or whatever = "blue"

          app.activeDocument.changeGrep();

           

          app.findGrepPreferences.findWhat = "\\b(3|6|9|12)\\b";

          app.changeGrepPreferences. // appliedColor or swatches or whatever = "green"

          app.activeDocument.changeGrep();

           

          Peter