4 Replies Latest reply on Jun 12, 2009 4:59 AM by Harbs.

    How to find text which having partricular color?

    R_Thangaraj

      hi everybody

      here i'm finding text which have Red swaches Or Red Color.

      var myDoc = app.activeDocument;
      app.findTextPreferences = NothingEnum.NOTHING;
      app.changeTextPreferences = NothingEnum.NOTHING;
      app.findTextPreferences.appliedParagraphStyle.fillColor=myDoc.swatches.item("Red");

      app.findTextPreferences.appliedParagraphStyle.fillColor=myDoc.colors.item("Red"); I Tried These
      var foundColor = app.findText ();

       

      Error : Object contains no text for find/change

       

      pls help me