Select all paragraphs of a certain style without looping
Did a quick search so please forgive me if this is a duplicate.
var paragraphs = app.activeDocument.textFrames.everyItem().paragraphs.everyItem();
Without looping through every paragraph is there a way to reference paragraphs with a certain applied style?
I'm thinking something like this:
var headlines = paragraphs.itemsByAppliedParagraphStyle("Headline 1");
//headlines is an array of all paragraph which have the paragraph style "Headline 1" applied to them
Thank-you for any help you can provide.
