当前位置:网站首页>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 .
边栏推荐
猜你喜欢

为什么vscode用久了电脑速度变慢?

Lumiprobe细胞生物学丨DiA,亲脂性示踪剂说明书

Study on lumiprobe modified triphosphate biotin-11-utp

Huffman tree (I) basic concept and C language implementation

MySQL高级篇3

AVL平衡二叉树(一) - 概念与C语言实现

Study on PEGylation of lumiprobe and PEG linker - iodine-peg3-acid

Lumiprobe 聚乙二醇化和 PEG 接头丨碘-PEG3-酸研究

【微服务~Nacos】Nacos之配置中心

Lvalue reference and lvalue reference
随机推荐
防范未授权访问攻击的十项安全措施
3Ds Max 精模obj模型导入ArcGIS Pro (二)要点补充
亚马逊在阿拉伯联合酋长国限制LGBTQ相关的搜索和产品销售
Scene 299
PHP obtains opcode and C source code
qiao-npms:搜索npm包
多表操作-外键约束
阿里kube-eventer mysql sink简单使用记录
Huffman Tree (1) Basic Concept and C - language Implementation
文本识别-SVTR论文解读
电子方案开发——智能跳绳方案
Personal developed penetration testing tool Satania
MySQL:SQL概述及数据库系统介绍 | 黑马程序员
AVL平衡二叉树(一) - 概念与C语言实现
19.04 分配器
哈夫曼树(一)基本概念与C语言实现
Lumiprobe 改性三磷酸盐丨生物素-11-UTP研究
SQL必需掌握的100个重要知识点:创建和操纵表
有趣插件汇总
报错FileSystemException: /datas/nodes/0/indices/gtTXk-hnTgKhAcm-8n60Jw/1/index/.es_temp_file:结构需要清理