If you are on a Mac, you can also use Applescripts to do this (scripts are already built for this on your system in the script folder). A bit faster than doing it via Photoshop which still has to open and save each document. Automator is supposed to do this as well, for whatever reason, I've never been able to get it to work.