Posts From Category: Coding

ScriptUI tip: decoupling components’ Event handling

In a ScriptUI Window different components are usually registered for Events, and fire their own Handlers. You can build some interconnection, so for instance a Button's 'click' handler triggers a change in a ListBox, which in turn reacts to its own 'onChange' Event. It's quite easy to decouple this interaction, provided that you set up your code properly.

Read More

Testing minified JS Libraries in ExtendScript

It's not uncommon, when scripting for Adobe applications, to borrow JS libraries that have been originally written for web development. While the new generation of Adobe HTML Extensions will run on the Chromium Embedded Framework, traditional ExtendScript code is based upon a different, older engine. Besides ECMAScript unsupported features (i.e. ES 5) I've noticed that using minified JS code is a risky business - scripts can break or fail silently. I've set up a proper testing environment to inspect them.

Read More

DropBox, Git and SublimeText on the Mac

As a freelance developer I've been using my DropBox account as the projects cloud backup - yet if you're willing to setup it as a private GitHub repository for version control, possibly in conjunction with a SublimeText Git plugin... chances are that you'll spend some time looking for issue workarounds. Why bother, I've gathered them here for you!

Read More