Reply To: Redefine Paragraph and Character Style Script?

#115971
Brian Pifer
Participant

Not sure this will work as I don’t have access to ID currently and am a bit rusty, but I would try something along the lines of:

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

for (var num = 0; num < myPars.length; num++) {
var revisedPointSize = myPars[num].texts.anyItem().pointSize;
myPars.appliedParagraphStyle.pointSize = revisedPointSize;
}

It could be made more elegant by skipping styles already fixed, or I could be approaching it totally backward or incorrectly, but that’s how I would start. This only accounts for point size and not other properties that might be changing, or character styles, but hopefully it helps you start to tackle it.

This article was last modified on April 9, 2019

Comments (0)

Loading comments...