if (documents.length == 0) { alert("没有可处理的文档"); } else { activeDocument.activeLayer.name = "66 weiweisheji.com" }