Skip to content

Instantly share code, notes, and snippets.

@mfyz
Created February 12, 2016 16:08
Show Gist options
  • Save mfyz/f9e6c35cc353848fe568 to your computer and use it in GitHub Desktop.
Save mfyz/f9e6c35cc353848fe568 to your computer and use it in GitHub Desktop.
// Select All Text Layers
var page = [doc currentPage],
layers = [page children]
[page deselectAllLayers]
var loop = [layers objectEnumerator]
while (layer = [loop nextObject]) {
if([layer className] == "MSTextLayer") {
[layer select:true byExpandingSelection:true]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment