操作方法
将下面的代码,复制粘贴到文本文档中,存储为.jsx文件(就是把扩展名为.txt结尾的文档,改成 .jsx文档) function deleteDocumentAncestorsMetadata() { whatApp = String(app.name);//String version of the app name if(whatApp.search("Photoshop") > 0) { //Check for photoshop specifically, or this will cause errors //Function Scrubs Document Ancestors from Files if(!documents.length) { alert("There are no open documents. Please open a file to run this script.") return; } if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript"); var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData); // Begone foul Document Ancestors! xmp.deleteProperty(XMPConst.NS_PHOTOSHOP, "DocumentAncestors"); app.activeDocument.xmpMetadata.rawData = xmp.serialize(); } } //Now run the function to remove the document ancestors deleteDocumentAncestorsMetadata();
打开有问题的psd文档,执行{文件}-{脚本}-{浏览}命令,找到刚刚建好的jsx文档打开,稍等几秒即可完成处理。
ps文档直接保存即可,以后再操作起来,你会发现ps不止快了一点点哦~