Skip to content

command line tool to execute adobe extendscript .jsx file

License

Notifications You must be signed in to change notification settings

tjx666/adobe-jsx

Repository files navigation

adobe jsx

npm version npm bundle size npm PRs Welcome

command line tool to execute adobe extendscript .jsx file

Install

# npm
npm i -g adobe-jsx

# pnpm
pnpm i -g adobe-jsx

Usage

command line

After installation, you can use command jsx to execute the jsx script.

jsx /path/to/jsxScript.jsx

node api

import { evalJsxFile, evalJsxScript } from '../src/jsx';

evalJsxScript(`alert('hello world')`);

async function main() {
    const output = await evalJsxScript(`$write('666')`);
    console.log();
}

TODO

  • tests
  • support $.write/$.writeln redirect to stdout
  • get eval JSX result and error
  • support access jsx command arguments
  • support specify adobe app and version
  • provide node api to execute jsx
  • support AE
  • support windows

Releases

No releases published

Packages

No packages published