Photoshop's scripting capabilities are pretty astonishing. I taught myself over lunch the other day. You can script in JavaScript, AppleScript, or VBScript and implement dialogs and UI panels.
It works exactly as you'd expect and scripts are quite lean (you don't need to do a bunch of setup).
Could you write up a tutorial post?