Skip to content

Instantly share code, notes, and snippets.

@kumo
Created April 17, 2015 08:21
Show Gist options
  • Save kumo/148fdbaf2677e13eaed0 to your computer and use it in GitHub Desktop.
Save kumo/148fdbaf2677e13eaed0 to your computer and use it in GitHub Desktop.
Text change snippet
var label = context.selection[0];
label.setStringValue("where time becomes a loop");
// If I uncomment the following it works
// var name = label.name()
// label.setName(newText)
// label.setName(name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment