Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjx666/adobe-jsx
command line tool to execute adobe extendscript .jsx file
https://github.com/tjx666/adobe-jsx
adobe aftereffects cli command-line-tool extendscript jsx photoshop
Last synced: about 2 months ago
JSON representation
command line tool to execute adobe extendscript .jsx file
- Host: GitHub
- URL: https://github.com/tjx666/adobe-jsx
- Owner: tjx666
- License: mit
- Created: 2022-10-20T20:40:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T21:10:41.000Z (over 2 years ago)
- Last Synced: 2024-12-09T03:32:59.907Z (about 2 months ago)
- Topics: adobe, aftereffects, cli, command-line-tool, extendscript, jsx, photoshop
- Language: JavaScript
- Homepage:
- Size: 124 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# adobe jsx
[![npm version](https://img.shields.io/npm/v/adobe-jsx.svg)](https://www.npmjs.com/package/adobe-jsx) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/adobe-jsx) ![npm](https://img.shields.io/npm/dm/adobe-jsx) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://github.com/tjx666/adobe-jsx/pulls)
command line tool to execute adobe extendscript `.jsx` file
## Install
```sh
# 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.
```sh
jsx /path/to/jsxScript.jsx
```### node api
```typescript
import { evalJsxFile, evalJsxScript } from '../src/jsx';evalJsxScript(`alert('hello world')`);
async function main() {
const output = await evalJsxScript(`$write('666')`);
console.log();
}
```## TODO
- [x] tests
- [x] 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