Object.keys() to name a few. Furthermore, most methods don’t return anything useful, so chaining is out of the question. All of this makes for clunky code that can be hard to read and a pain to write.
Our project aims to unify concepts wherever possible in a consistent declarative API. For example,
openFile(path) is a method you should be able to call in any application. Not just that, it should also return you the object for the file you just opened.
Here’s an example in Illustrator —
var doc = Ai.openFile('path/to/my/file.ai');
that in Creating-Deftly is equivalent to the following in vanilla illustrator jsx —
file = new File('path/to/my/file.ai', DocumentColorSpace.RGB); app.open(file); var doc = app.activeDocument;
openFile will take an optional argument of ‘CMYK’ or ‘RGB’ but defaults to ‘RGB’
And that is a very simple example!
At the time of writing this, Creating-Deftly is still in it’s infancy. We are starting to have pretty comprehensive coverage of Illustrator and Flash but there is still TONS of room for improvement.
Here are the key goals going forward.
- Develop an easy way to install Creating-Deftly on Mac & Windows
- Make Creating-Deftly test-driven, as well as exploratory/production tests
- Define what the universal API methods should be
- Use Creating-Deftly as a platform to drive new in-app GUI tools
- Document, Document, Document!
Creating Deftly is an open source project devoted to making automation of Adobe products easier with a unified API, chainable commands, and in-app GUI tools.
If you’re looking for an easier way to work with Adobe’s ExtendScript, .jsx, or .jsfl then consider using and contributing to Creating-Deftly.