Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 842 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 842 Bytes

Convert ExtendScript XML documentation to TypeScript declarations

Converted files can be found in types-for-adobe repository.

Usage

Dump declaration files first and then:

# install package
npm i pravdomil/extendscript-xml-to-typescript -g

# convert JavaScript types
extendscript-xml-to-typescript "/Library/Application Support/Adobe/Scripting Dictionaries CC/CommonFiles/javascript.xml"
cat "/Library/Application Support/Adobe/Scripting Dictionaries CC/CommonFiles/javascript.d.ts"

# convert InDesign types
extendscript-xml-to-typescript "~/Library/Preferences/ExtendScript Toolkit/4.0/omv$indesign-11.064$11.3.xml"
cat "~/Library/Preferences/ExtendScript Toolkit/4.0/omv$indesign-11.064$11.3.d.ts"