当前位置:网站首页>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 .
边栏推荐
- Go learning notes
- Peking University ACM problems 1001:exposition
- stacking集成模型预测回归问题
- Go语学习笔记 - gorm使用 - 数据库配置、表新增 | Web框架Gin(七)
- ICLR'22 Spotlight | 怎样度量神经网络权重中的信息量?
- 文本生成模型退化怎么办?SimCTG 告诉你答案
- A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities
- Binary search tree (1) - concept and C language implementation
- Game 81 biweekly
- Vite2兼容低版本chrome(如搜狗80),通过polyfills处理部分需求高版本的语法
猜你喜欢
开发技术-使用easyexcel导入文件(简单示例)
在线教育项目用户登录和注册
MySQL advanced 3
DM8:生成DM AWR报告
Lumiprobe protein quantitation - qudye Protein Quantitation Kit
CentOS - enable / disable Oracle
翻转链表II[翻转链表3种方式+dummyHead/头插法/尾插法]
RP原型资源分享-购物类App
Deflection lock / light lock / heavy lock lock is healthier. How to complete locking and unlocking
Lumiprobe cell biology - dia, instructions for lipophilic tracer
随机推荐
[原创]用代码dialog 高度 宽度无法屏幕屏幕问题
在手机炒股开户安全吗?
Scene 299
【等级测评师】等级测评师怎么报名?多少分及格?
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
Go语学习笔记 - gorm使用 - 数据库配置、表新增 | Web框架Gin(七)
Lumiprobe cell biology - dia, instructions for lipophilic tracer
数据库 OLAP、OLTP是什么?相同和不同?适用场景
Peking University ACM problems 1000:a+b problem
第81场双周赛
凤凰架构——架构师的视角
Peking University ACM problems 1005:i think I need a houseboat
What are database OLAP and OLTP? Same and different? Applicable scenarios
Huffman Tree (1) Basic Concept and C - language Implementation
B_QuRT_User_Guide(34)
Lvalue reference and lvalue reference
软工UML画图
多表操作-外键约束
A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities
Peking University ACM problems 1002:487-3279