Illustrator Script: List Open Files
Drop it in your Illustrator Scripts folder and restart the application to make script menu item available.
Photoshop Script: Export Layers to Files
Drop it in your Photoshop Scripts folder and restart the application to make script menu item available.
Please feel free to leave comments and suggestions.