#target photoshopapp.bringToFront();
if (documents.length == 0) {
alert("没有可处理的文档");
} else {
var visibility = false;
var docRef = activeDocument;
var layers = docRef.layers;
if (layers.length == 1 && docRef.activeLayer.isBackgroundLayer == 1) {
alert("The Background layer can not be hidden when it is the only layer in a document.");
} else {
for (var i = 0; i var tempName = "name" + i;//修改后的名称
layers[i].name = tempName;
}
}
}
将上面的代码保存为.jsx文件,在ps中作为脚本运行。
只能支持全部图层模式,对组还不起作用