I need help to find the "leading point size".
Any para style leading is more than 2 points of my font size, I need the alert message "Its more than 2 points for your font size". For instance my para font size is 10 here my leading should be 12 points rather than its 14 points, I need the alert message.
Is this possible by script?
var doc = app.activeDocument;
var texts = doc.stories.everyItem().textStyleRanges.everyItem().getElements();
var pstyle = "Following paragraph styles have more leadings:\r\r";
var ps = texts[i].pointSize;
if(texts[i].leading > ps + 2)
pstyle += texts[i].appliedParagraphStyle.name;
If it is correct than mark the answer as correct and don't mark your question as correct answer.