Posts Tagged - Extendscript

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