Generate Typescript support for any compatible Adobe app with a single terminal command:
# Recommended global so you can use this any time, in any folder
npm install -g scriptopia
Scriptopia will download reliable typescript definitions from Ten-A's fork to your project (but skip if already present), generate a tsconfig.json
and .ts
file in your current working directory, then instruct you on the hotkey to run the tsc: watch
task to finish your setup:
Using the command with no arguments will result in a CLI prompt for which application to script for, and what the name of the file should be:
# This assumes a package.json is present somewhere in your project. If so, you can use it within any child no matter the depth, but if not, you'll need to create one beforehand:
npm init -y
scriptopia
You can skip this prompt by adding them as arguments instead. Any of the below are valid:
scriptopia ai test.js
scriptopia ilst file.ts
scriptopia illustrator myScript.jsx
- Illustrator -
ai
,ilst
, orillustrator
- After Effects -
ae
,aeft
,aftereffects
, orafterfx
- Photoshop -
ps
,phxs
, orphotoshop
- InDesign -
id
,idsn
, orindesign
- Premeire Pro -
pp
,ppro
,premiere
, orpremierepro
- Audition -
au
,audt
, oraudition
Feel free to file an issue, but if you have help
any where in your arguments, like so:
scriptopia help
You'll see a message similar to the above outlining it's usage.