Skip to content

Use TypeScript for Adobe Audition / Illustator / InDesign / Photoshop scripting

Notifications You must be signed in to change notification settings

lm913/types-for-adobe

 
 

Repository files navigation

Use TypeScript for Adobe Products

Prerequisites

Install Node.js and TypeScript.

Your first script for eg. Adobe Illustrator

# create new folder
mkdir test
cd test

# install types-for-adobe
npm init -y
npm i pravdomil/types-for-adobe

# create tsconfig.json
printf '{"compilerOptions":{"module":"none","noLib":true,"types":["types-for-adobe/illustrator/2015.3"]},"exclude":["node_modules"]}' > tsconfig.json
# change tsconfig.json types value to Adobe product you're targeting

# create index.ts
printf 'alert(String(app))' > index.ts
# open index.ts your favourite TypeScript editor and start scripting

# compile typescript files
tsc -p .

# open Adobe Illustrator -> File -> Scripts -> Other Script -> and select index.js

Note

Declaration files is generated by extendscript-xml-to-typescript converter.

Definitions was created in summer 2017 by Pravdomil.com.

You can buy a beer for him.

About

Use TypeScript for Adobe Audition / Illustator / InDesign / Photoshop scripting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published