2 Replies Latest reply on Jul 6, 2009 7:39 PM by John Kallios

    JS CS4: Find and Change text with a specified spot color

    John Kallios Level 2

      This is what I have so far:


      var myDoc = app.activeDocument;
      var mySplit = myDoc.name.indexOf ("_");
      var myFileName = myDoc.name.slice (0,mySplit+3);
              app.findTextPreferences = app.changeTextPreferences = null;
              app.findTextPreferences.findWhat= "Nx";
              app.changeTextPreferences.changeTo= myFileName;
              app.findTextPreferences = app.changeTextPreferences = null;


      "        app.findTextPreferences.swatches.item("Proof");" fails for me.


      Can someone point me to the correct verbiage on how to set the swatch color preference along with the text to be replaced?


      Thank you,