extendscript-debug-napi
v2.0.3-3
Published
来自于[Adobe.extendscript-debug](https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug)授权自 [Apache License 2.0](https://marketplace.visualstudio.com/items/Adobe.extendscript-debug/license)
Downloads
7
Readme
extendscript-debug-napi
来自于Adobe.extendscript-debug授权自 Apache License 2.0
开始
let esdcorelibinterface = require("extendscript-debug-napi");
//初始化
esdcorelibinterface.esdInitialize("hmc-debug",process.pid);
执行jsx
// 封装好的代码包裹函数
let jsxCode = esdcorelibinterface.sendDebugRequest.jsx
// 获取标准化的ps版本号
const {specifier} =esdcorelibinterface.esdResolveApplicationSpecifier("Photoshop-cc2020");
//=> "photoshop-140.064"
await esdcorelibinterface.sendDebugRequest(specifier,jsxCode(String.raw`
alert("Hello world!");
`));
// fn Err : ESDCORE_INIT_FAILED in Status
// ok : {value: {…}, profiling: '', engine: 'mian'}
// err : {error: {…}, profiling: '', engine: 'mian'}
JSXBin
//code
esdcorelibinterface.esdCompileToJSXBin(`alert("Hello world!");`,'','')
//=> {status: 0, output: '@JSXBIN@[email protected]@MyBbyBn0ABJBnAE...'}