当前位置:网站首页>Adobe Photoshop (PS) - script development - remove file bloated script
Adobe Photoshop (PS) - script development - remove file bloated script
2022-06-30 20:57:00 【Plug in development】
List of articles
1. Algorithmic program
PS It is a widely used image processing software , Loved and familiar by designers . Because of its very wide range of uses , and PS It is impossible to cover everything , So there are various plug-in development based on it to extend its functions , Meet their specific professional needs . This article introduces a common script , Will be bloated PSD file , Remove bloated . Remove menu file -> File info -> Raw data , Shown below :
The code is as follows :
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(" Please open the document first !")
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();
}
}
// Run the document to remove annotations
deleteDocumentAncestorsMetadata();
The main function of this script code is to remove psd A bloated mark in .
2. Author Q & A
If you have any questions , Please leave a message .
边栏推荐
猜你喜欢

毕业五年,想当初若没有入行测试,我是否还会如这般焦虑

Lumiprobe染料酰肼丨BDP FL 酰肼方案

Study on lumiprobe modified triphosphate biotin-11-utp

PHP require/include differences

《大厂面试》之JVM篇21问与答

Huffman tree (I) basic concept and C language implementation

qiao-npms:搜索npm包

Lumiprobe cell biology - dia, instructions for lipophilic tracer

Markdown笔记简明教程

【微服务~Nacos】Nacos之配置中心
随机推荐
雷达数据处理技术
qiao-npms:搜索npm包
Lumiprobe copper free click chemical solution
树基本概念
Amazon restricts LGBTQ related search and product sales in the United Arab Emirates
Binary search tree (1) - concept and C language implementation
Personal developed penetration testing tool Satania
毕业五年,想当初若没有入行测试,我是否还会如这般焦虑
基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享
Lumiprobe 聚乙二醇化和 PEG 接头丨碘-PEG3-酸研究
SQL必需掌握的100个重要知识点:创建和操纵表
MySQL advanced 3
Testing principle and precautions of biovendor rage ELISA Kit
修改已经上线的小程序名称
报错FileSystemException: /datas/nodes/0/indices/gtTXk-hnTgKhAcm-8n60Jw/1/index/.es_temp_file:结构需要清理
BioVendor sRAGE Elisa试剂盒测试原理和注意事项
有趣插件汇总
转:用实际行动赢得别人追随
Summary of personal work of 21 groups in the first week of summer training
Lumiprobe biotin phosphimide (hydroxyproline) instructions