Only use the powerful functionality offered in Prototype when needed. If basic JavaScript will do the task, then use basic JavaScript. Beware of JavaScript Library Overkill →
It isn’t a secret that one can script Photoshop to automate some tasks. Heck, one could even write a program and steer Photoshop. Hereby I’m posting a script that I’ve been using quite regularly.