Skip to content

Instantly share code, notes, and snippets.

@sonburn
Last active November 4, 2016 20:13
Show Gist options
  • Save sonburn/a22e93b834fb7673440cb2edcb08b695 to your computer and use it in GitHub Desktop.
Save sonburn/a22e93b834fb7673440cb2edcb08b695 to your computer and use it in GitHub Desktop.
var selection = context.selection;
for (var i = 0; i < selection.count(); i++) {
var layer = selection[i];
if ([layer class] === MSSymbolInstance) {
layer.setName([layer symbolMaster].name());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment