3 Replies Latest reply on Jan 31, 2011 4:24 AM by Techi Panda

    Text Find Once

    Techi Panda Level 2

      Hi all

       

      I am finding character style called "FigCallout". Below is the code finds all the occurrences and results total number of found items. I want  to find the first one, that mean I want to this code for just once. So that I can get only one item and first occurence too.

       

      app.findTextPreferences = app.changeTextPreferences = null;
      app.findTextPreferences.appliedCharacterStyle = 'FigCallout';
      var myResults = app.activeDocument.findText();

       

      How can I do this?

       

      thanks in advance

       

      regards

      a r u l