2.0.3-3 • Published 2 years ago

extendscript-debug-napi v2.0.3-3

Weekly downloads
-
License
Apache License 2....
Repository
-
Last release
2 years ago

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@ES@2.0@MyBbyBn0ABJBnAE...'}
2.0.3-3

2 years ago

2.0.3-2

2 years ago

2.0.3-1

2 years ago

2.0.3

2 years ago