Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
What if I don't want to change the style I just want to find the basic paragraph style and then alert the user?
like:
if
(app.findTextPreferences.appliedParagraphStyle ==
app.activeDocument.paragraphStyles.item("[Basic Paragraph]") )
{ alert "you have basic paragraphs");}
Copy link to clipboard
Copied
Try the following
app.findTextPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.itemByName("$ID/[Basic Paragraph]")
var res = app.documents[0].findText()
if(res.length != 0)
alert("You have basic paragraphs")
-Manan
Copy link to clipboard
Copied