Scripting Photoshop with Ruby

Justin Palmer (of Prototype fame) has a quick tutorial for Scripting Photoshop With JavaScript and Ruby. This technique uses a Ruby/AppleScript bridge (RubyOSA) to do most of the heavy lifting.