GREP find paragraph style
Hi guys,
I'm using this grep to find all words that use the Body text paragraph style.
However I get the same result whether I specify a paragraph style to find or not.
The result is always the same. Why is this?
app.findGrepPreferences=null;
var found = app.findGrepPreferences.findWhat="\\b\\w+?\\b";
found.appliedParagraphStyle="Body text";
found=app.activeDocument.findGrep();
alert("This document has "+found.length+" words");
gives the same result as
app.findGrepPreferences=null;
var found = app.findGrepPreferences.findWhat="\\b\\w+?\\b";
found=app.activeDocument.findGrep();
alert("This document has "+found.length+" words");