This Photoshop script command allows you to select any recognizable graphic file format and batch process it into three other common digital formats; TIF, JPEG and PSD. You can work with adobe bridge, ...you don't have to have the images open, just select the ones you want and run it. It also work with your customized photoshop action tool, just select the action that you want.
When I first started writing scripts for Photoshop, I used a plain old text editor. It worked fine, but it was a somewhat laborious task to write the scripts and then switch over to Photoshop to test them. Plus, troubleshooting the scripts was a difficult process, as well. Then I discovered the ExtendScript Toolkit in Photoshop CS2. Thankfully, it's a script editor that was created specifically for editing scripts in Photoshop and it really helps speed things up.