extendscript-debug-napi
TypeScript icon, indicating that this package has built-in type declarations

2.0.3-3 • Public • Published

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...'}

Readme

Keywords

none

Package Sidebar

Install

npm i extendscript-debug-napi

Weekly Downloads

2

Version

2.0.3-3

License

Apache License 2.0

Unpacked Size

8.98 MB

Total Files

24

Last publish

Collaborators

  • kihlh