Reply To: Script to rename all Paragraph styles

#88622
Peter Kahrel
Participant

This would do it:

pstyles = app.documents[0].allParagraphStyles;
for (i = pstyles.length-1; i > 1; i--) {
  pstyles[i].name = pstyles[i].name.replace(/\./g,'_');
}

Peter

This article was last modified on September 22, 2016

Comments (0)

Loading comments...