If you know some JavaScript and have thought of applying your skills to Photoshop automation, you might check out Trevor Morris’s Intro to Scripting Photoshop and follow-up practical example.

Check it out here.