Reply To: Find differences in several paragraph styles

#115970
Brian Pifer
Participant

What kind of differences might you be looking to compare, and is the point of the comparison to identify the ones that need to be changed in the second part of your question?

For the second part here is a brute Force solution (I’m a bit rusty):

var myPars = app.document.paragraphs.everyItem();

for (var i = 0; i < myPars.length(); i++) {
if (myPars[i].appliedParagraphStyle == “styleToChange” {
myPars[i].applyParagraphStyle(“styleToApply”), true));
//Repeat other if statements as necessary

This article was last modified on April 8, 2019

Comments (0)

Loading comments...