Hello there,
I want all the paragraph styles from the document which are overriden. Is there any way instead of iterating all paragraph styles?
Thanks in advance.
Hello Harbs,
Yes, you are right. The code sample provided by Vamitul is not working. As there seems to be no such way to get all overriden paragraph styles without iterating all paragraphs, I am doing like this-
for(var cnt=0; cnt<app.activeDocument.textFrames[0].paragraphs.length; cnt++)
{
var myPara = app.activeDocument.textFrames[0].paragraphs[cnt];
if(myPara.styleOverridden)
//alert(myPara.appliedParagraphStyle.name+" is overriden");
else
//alert(myPara.appliedParagraphStyle.name+" is not overriden");
}
Thanks.
North America
Europe, Middle East and Africa
Asia Pacific