How to change content of all selected Text layers
i need to change the content of all selected Text layers the same this image ..i`m wrote the code but i can`t make chance on all text layers
if (app.documents.length > 0) mainScript();
function mainScript() {
try{
var myLayerName = activeDocument.activeLayer.name;
var myLayerText = app.activeDocument.activeLayer;
myLayerText.name = myLayerName + '#';
myLayerText.kind = LayerKind.TEXT;
myLayerText.textItem.contents = myLayerText.textItem.contents + myLayerName;
}catch (errStr){
alert(errStr);
}
}
