For those not into the scripting thing here’s another method that can be recorded in an action, which can be invoked in batch:
* Open a sample image
* Record new action
* Automate > Picture Package ….Use Frontmost Image
…..Pick any package/format combo with as few individual pics as possible, e.g. (2) 5×7 …..Resolution that = your desired resolution
…..Specify File Name, font size, style, color, etc.
…..Do not flatten layere mages
* OK to launch Picture Pkg
PP will generate a layered file among whose layers will be at least one with the file name.
* Click on the Background of the Picture Package-created layer * Enter "Alt + ]" 2 times to select the Type layer * Right click and choose Rasterize Layer
* Select > All
* File > Close (don’t save)
* Edit > Paste (create new layer in original document with file name) * Select > All
* Layer > Align to selection > Bottom Edge
* Layer > Align to selection > Right Edge
* Select > Deselect
* Choose Move tool
* Drag file name into final position (no command recorded) * Select > All (records previous command) STOP recording * Delete last Select > All command. It’s not needed.
Ta-da. File name w/o a script. 🙂