Skip to content

Instantly share code, notes, and snippets.

@Arahnoid
Forked from vladocar/layerNames.js
Last active April 21, 2019 22:47
Show Gist options
  • Save Arahnoid/3940961688633c4671cb to your computer and use it in GitHub Desktop.
Save Arahnoid/3940961688633c4671cb to your computer and use it in GitHub Desktop.
[Get list of layer names] #Photoshop
var layerNum = app.activeDocument.layers.length;
var a = [];
for (var i = 0; i < layerNum; i++) {
a[i] = '"' + app.activeDocument.layers[i].name + '"';
}
prompt("Layers Names:", a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment