Skip to content

Instantly share code, notes, and snippets.

@milligramme
Last active December 27, 2015 18:09
Show Gist options
  • Select an option

  • Save milligramme/7367996 to your computer and use it in GitHub Desktop.

Select an option

Save milligramme/7367996 to your computer and use it in GitHub Desktop.
// duplication between sytle groups
// pstyle
// - group_a
// - style_a2
// - style_a1 <src>
// - group_b
// - [style_a1 <dest>]
//
#target indesign
var doc = app.documents[0];
var b = doc.paragraphStyleGroups.item("group_a").paragraphStyles.item("style_a1").duplicate();
b.move(LocationOptions.AT_END, doc.paragraphStyleGroups.item("group_b"));
b.name = "sytle_a1";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment