Photoshop actions are pretty awesome. They have limitations though, and I ran into this when trying to do a fairly simple task... automatically renaming a Photoshop group layer to the source files name, sans extension. Here's an overview of that scenario and how I did it.