2 Replies Latest reply on Jun 9, 2008 4:15 AM by hm_arul

    Find and replace text CS2

    hm_arul Level 1
      hi scripters

         here I am trying to find the text applied Arial font. I just want to replace some text before and after the text.

        I have started but I am struck what's next, can you any one suggest me please

      app.findPreferences = NothingEnum.nothing;
      app.changePreferences = NothingEnum.nothing;
      app.findPreferences.appliedFont = 'Arial';
      var myResults = app.activeDocument.search();

      for (i = myResults.length-1; i >= 0; i--)

      Text found applied font Arial : "I am Arial font"
      Want to replace same font but text like this: "I am Arial Font"

      Thanks in advance

      a r u l