by Julieanne Kost
Installing the OpenAsLayer script will allow you to open a file and have Photoshop CS5 automatically promote the background into a layer AND rename that layer the same as the file name. (This works for the Open command, opening files through Bridge and Adobe Camera Raw). Special thanks to Thomas Ruark at Adobe for creating and sharing this script!
Copy the script into the Photoshop CS5 folder / Presets / Scripts / Event Scripts Only
Launch Photoshop CS5
Select File > Scripts > Script Events Manager
In the Script Events Manager dialog box:
Click to enable “Enable Events to Run Scripts/Actions:”
For Photoshop Event: use the drop down to select “Open Document”
In the Script drop down select “OpenAsLayer”
Click the Add button (it should show up in the upper list box)
Click the Done button
Open your document. In the Layers palette, the Background has been changed to a layer and renamed the document name. Note: This script will have no effect on documents that do not have a background layer.