Get Page number of the search text
Hi,
I tried to fetch the count of a particular text in a document according to pages but it does nothing, for that, I used
var myDocument = app.activeDocument;
var myPages = myDocument.pages.length;
app.findGrepPreferences = NothingEnum.NOTHING;
app.findGrepPreferences.findWhat = "Hi";
var list = app.activeDocument.findGrep ();
for(var i =0; i<= list.length; i++)
{
alert("No of Occurence in page "+myPages +" is "+ list[myPages].length);
app.findGrepPreferences = NothingEnum.NOTHING;
}