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
a r u l
I'm not sure what you are asking.
myResults gives you the first instance...
Thanks a lot to both of you !!!!