GitXplorerGitXplorer
h

adobe-xml-to-dts

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
6408bf3801cb86669d0d3bf71feaeac713b12793

Rename to adobe-xml-to-dts

hhansottowirtz committed 8 years ago
Unverified
9e2c433f6d7b45e945b378ea1d0699487e742d5c

Add Indesign, readonly and optional

hhansottowirtz committed 8 years ago
Unverified
02ff107abe62264657bbb4dd90152b3c7d1450d0

Update readme

hhansottowirtz committed 8 years ago
Unverified
189403009bedb3b1cba4c03095f3c4452b2d5e94

Make basic .xml to .d.ts converting work

hhansottowirtz committed 8 years ago

README

The README file for this repository.

Adobe Object Mobel Viewer .d.ts Generator

A Typescript declaration file convertor for ExtendScript

This Ruby script converts ExtendScript Toolkit's Object Model Viewer .xml files to .d.ts files for Typescript. You can find those in the types/ folder.

Currently these apps have built declaration files:

  • Illustrator
  • Photoshop
  • Indesign

Please open an issue if you want to have another .xml converted.

The files have quite a lot of errors (which is the fault of Adobe) and still need some adjustments before they can be used in a real project.

Usage

./bin/adobe-xml-to-dts res/illustrator.xml res/photoshop.xml types/
./bin/adobe-xml-to-dts res/scriptui.xml types/built/scriptui.d.ts

Setup

Depends on Ruby, probably >= 2.3.0

git clone https://github.com/hansottowirtz/adobe-xml-to-dts
cd adobe-xml-to-dts
chmod +x ./bin/adobe-xml-to-dts
bundle install