战焰盟吧 关注:31贴子:4,155
  • 1回复贴,共1

文件很小,保存后很大

只看楼主收藏回复

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();


IP属地:黑龙江1楼2018-06-03 23:40回复
    打开TXT文档,另存为后缀.jsx 然后,文件-脚本-脚本时间管理器--选下面中 ps事件--打开文档,下面的脚本里选择浏览,找到刚刚保存的文件,点击旁边的添加,就到上面去了,点完成就可以了


    IP属地:黑龙江2楼2018-06-04 01:52
    回复