-
-
Save caraya/6bbb09ad669dd43aa70d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//originally published here: http://www.pdsassoc.com/downloads/ReassertParaStyles.js.zip | |
//rewritten to be CC compliant | |
//DESCRIPTION: Visit all paragraphs in document and reassert paragraph styles | |
myStyles = app.activeDocument.allParagraphStyles; | |
app.findTextPreferences = null; | |
app.changeTextPreferences = null; | |
for (var n = 1; myStyles.length > n; n++){ | |
app.findTextPreferences.appliedParagraphStyle = myStyles[n]; | |
app.changeTextPreferences.appliedParagraphStyle = myStyles[n]; | |
app.activeDocument.changeText (); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment