http://psd.tutsplus.com/tutorials/photo-effects-tutorials/batch-editing-and-automated-processing-in-photoshop/