skip to Main Content

Scope in JavaScript behaviour – Photoshop

This is a simple script that'll log the content of text from a Photoshop file. var numOfLayers = app.activeDocument.layers.length; var resultStr = ""; doAllLayers(); alert(resultStr); function addToString(alayer) { if (alayer.kind == "LayerKind.TEXT") { var c = alayer.textItem.contents; resultStr += c;…

VIEW QUESTION
Back To Top
Search