Reply To: Script to add a Paragraph Style to text

#117059
Kal Starkis
Member

The following one-liner will do what you’re asking:

app.selection[0].applyParagraphStyle(app.documents[0].paragraphStyles.itemByName("My Paragraph Style"));

But I’m still at a loss as to how this is going to save you any work, since running the script isn’t any easier than clicking on the style in the Paragraph Styles panel?

This article was last modified on June 5, 2019

Comments (0)

Loading comments...