command line tool to execute adobe extendscript .jsx
file
# npm
npm i -g adobe-jsx
# pnpm
pnpm i -g adobe-jsx
After installation, you can use command jsx
to execute the jsx script.
jsx /path/to/jsxScript.jsx
import { evalJsxFile, evalJsxScript } from '../src/jsx';
evalJsxScript(`alert('hello world')`);
async function main() {
const output = await evalJsxScript(`$write('666')`);
console.log();
}
- 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