“Open as Layer and Rename” Script for Photoshop

Adobe Photoshop

If you’ve ever wanted to have Photoshop open a document, convert the Background to a Layer, and rename the layer the same as the file name, then this script is for you!

Directions to install:

• Download and unzip the OpenAsLayerNoExtension.jsx script.  Note: This script works for the Open command, opening  files through Adobe Bridge and Adobe Camera Raw. This script will have no effect on documents that do not have a background layer.

• Copy the script into the Adobe Photoshop 2022 folder / Presets / Scripts / Event Scripts Only

• Launch Adobe Photoshop 2022

• 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 “OpenAsLayerNoExtension.jsx”

– Click the Add button. Then, click the Done button.

• Open your document. In the Layers panel, the Background has been converted to a layer and renamed using the document name.

If you prefer to open, convert, rename the Background layer and include the file extension, use this script instead: OpenAsLayer.jsx.

Special thanks to Thomas Ruark at Adobe for creating and sharing this script!


Adobe Photoshop

Posted on 01-11-2022