2 Replies Latest reply on Jan 3, 2010 6:09 AM by Mac_06

    Newbie in scripting [JS] getting trouble

    Mac_06 Level 2

      Hello Folks

      I am learning javascript and need a help from you.

       

      I had a CS3 easy script with me and it's working fine but in CS2 it's not, Could and one figure it out why??

      I had done it change accordingly........

       

      if(myDoc.textFrames.item ("My Label") !=null){
      app.findPreferences.caseSensitive = false;
      app.findPreferences.wholeWord = true;

      var myFind=app.findPreferences.findText = "figure";
      myChange=app.changePreferences.changeText=myString;

      app.activeDocument.textFrames.item ("My Label").replace();

       

      Mac