by Julieanne Kost
If you’ve ever needed to add a text layer that contains the name of the open file here is a script to make it happen.
Download the script: AddFileName20pt.jsx and double click to unzip the file.
Place the script in your Photoshop CS5/Presets/Scripts folder.
Open your image.
Select File > Scripts > AddFileName20pt
A word of caution, it is doubtful that the script will add the type layer at the exact size and in the exact position that you will want it. In order to make changes to the type style (size, font, color etc.), it is CRITICAL (especially if you are recording the script as part of an action) that you double click on the “Filename” type layer in the Layers palette and make changes to the type (font, size etc.) using the Options bar. Do NOT swipe the text in the image area or it will record that file’s name as part of the action and all of the following images will be named the same as the first one that you recorded!
Special thanks to Thomas Ruark at Adobe for creating this script.