Answered
How to create a new “abc” paragraph style, at the same time new to the A style group?
First judge whether there is an "A" style group, if there is no abc paragraph style in the group, then create a new "A" style group ("abc" paragraph style).
How do I modify this?
Thank you very much.
if (!app.documents[0].paragraphStyles.item(abc).isValid) {
app.documents[0].paragraphStyles.add({ name: abc});
}
