Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript Typings for Illustrator, etc. #85

Open
habemus-papadum opened this issue May 27, 2018 · 6 comments
Open

Typescript Typings for Illustrator, etc. #85

habemus-papadum opened this issue May 27, 2018 · 6 comments

Comments

@habemus-papadum
Copy link

Hi -- The Typescript example is really useful, but seems to only have typings for Premiere. Is there any chance Adobe could generate typings for its other products? In particular, I'm interested in Illustrator. Cheers! nehal

@bbb999
Copy link
Contributor

bbb999 commented May 28, 2018

The Premiere-focused TypeScript work was a labor of love by a TypeScript fan. You're welcome to emulate his fine work, but I doubt whether the Illustrator team is planning on releasing TypeScript-related sample code, any time soon.

@Jolg42
Copy link

Jolg42 commented May 28, 2018

@habemus-papadum You should check https://github.com/pravdomil/Types-for-Adobe (I didn't try it yet though but it looks good!)

@habemus-papadum
Copy link
Author

@Jolg42 -- yup this is the path... Thanks!

Adobe-CEP (@bbb999 ?): As a compromise, is there any chance that Adobe-CEP would make (more easily) available the object schema xml files bundled with the ExtendScript Toolkit -- particularly, ExtendScript Toolkit no longer installs on newer MacOs's, which makes using https://github.com/pravdomil/extendscript-xml-to-typescript difficult.

@bbb999
Copy link
Contributor

bbb999 commented May 28, 2018

The Fruit Company’s tedious warnings in recent OSX versions aside, ESTK’s easily installed from with the installer’s bundle (“show package contents” is your friend).

@habemus-papadum
Copy link
Author

should of known... thanks.

@haysclark
Copy link

haysclark commented Apr 5, 2022

This repo has Illustrator 2015.3 types that can get you started. aenhancers/Types-for-Adobe

I took that work and then used pravdomil/extendscript-xml-to-typescript to generate Illustrator types from the omv.xml

sudo npx extendscript-xml-to-typescript /Library/Application\ Support/Adobe/Scripting\ Dictionaries\ CC/Illustrator\ 2022/omv.xml

The generated type file is a great start, but you need to manually correct all of the 'collections', some static items, Points, and Rect (Rectangles). I've posted a GitHub Gist of my Illustrator 26.0.3 (WIP) TS types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants