How do you check if an image file (tiff, psd, psb) is corrupted, other than looking at its thumbnail with Bridge, or opening it on Photoshop? With a small Python script and ImageMagick!
Posts From Category: Coding
I've thought that "New Year Resolutions" sounds bad compared to "Wishlist" - doesn't it? Just an excuse to post a bunch of links and inventory topics I'd like to spend time on in 2014.
An open letter to fellow developers! If you're involved building third party solution for Adobe applications (mainly Scripts/Extensions) and you care about it, please invest 10 minutes of your time, read along and chime in.
Back when I started writing Scripts for Photoshop, I'd have loved having Boilerplate code to borrow and learn from. I've put a repository on GitHub with my take on that - still in early, alpha stage but some CoffeeScript stuff is there, ready to be forked: feel free to contribute!
Ever wanted a shortcut-bound, Sublime Text snippet that wraps a selected portion of CoffeeScript code in a properly indented try/catch block? Me too, so I wrote it, here it is!
BridgeTalk, the system that enables messaging between applications in the Adobe scripting ecosystem, is prone to failure when evaluating functions via .toSource() - be aware and stringify them in advance!
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.
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.
In your code you may need to run a ScriptUI component's callback, or simulate a user interaction, maybe as a part of a subroutine. There are few ways to do this, with slight differences in the behavior: directly, using call(), notify() or dispatchEvent() - I've set up a commented demo Dialog that shows them all.
If you aren't in love with Adobe's ExtendScript Toolkit, welcome to the club. I've come up with a Sublime Text 2 build system package that lets you run JSX scripts directly from Sublime Text targeting Photoshop, Command+B or CTRL+B and voilà!
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!
When scripting for the Creative Suite it may be handy to setup a Preset system, in order to allow users save and retrieve their own preferred configurations easily. In this tutorial I'll show you how to implement Presets with a DropDownList menu based upon XML data.
Are you looking for Photoshop Extensions? I'm pleased to announce that CS Extensions, a brand new website entirely dedicated to Creative Suite products targeted to Photographers and Retouchers, is finally online (a project that kept me quite busy in the last two months).
In order to build a script that requires user input (from a GUI) and can be recorded into an Action, you must code a particular set of features - I'll be providing a commented example, to be used as a template.
ScriptUI Windows can be tricky in Photoshop, especially if you want to create a non-modal, persistent and idle palette. While a couple of workarounds are possible, as I've shown in a previous post, there's a better alternative involving BridgeTalk.
Subclipse plugin adds the Subversion support (a Version Control System) to the Flash Builder 4.6 IDE. I'll show you how to install it and create a repository on a local disc.
Personal thoughts about Adobe Creative Suite extensibility, focusing on Photoshop.
Adobe 2011 Financial Analyst Meeting is a powerful source of information about technology and strategies that Adobe will push in the future, and that will shape the world of creatives and developers.
The prerelease program for Adobe CS Extension Builder (a Flash Builder/Eclipse plugin to code Creative Suite extensions) is open!
The extension does not contain valid signature. The extension will not be installed. This Adobe Extension Manager CS5 / CS5.5 on Mac OSX Lion issue finally has a temporary fix.