Skip to main content
Carson Jones
Known Participant
January 16, 2025
Open for Voting

Load Files into Photoshop Layers - without the file extension...

  • January 16, 2025
  • 6 replies
  • 512 views

Would love to see the option to drop the file extension from the layer name when loading files into Photoshop layers. The extensions often aren't needed and take up valuable UI space. Also, if users are running scripts that pull the layer name to use elsewhere, the included file extension can create problems. A simple checkbox in preferences would do the trick. It's quality of life request.

 

This would be needed when running the script from within PS and Bridge.

6 replies

Stephen Marsh
Community Expert
Community Expert
January 23, 2025

@Carson Jones 

 

As this is a script, Adobe can't really add a checkbox into Preferences, things don't work that way. Adobe could add a checkbox to the script interface though. I have added my vote.

 

To achieve the desired result without waiting for Adobe to possibly implement this you can edit one line of code.


The Presets/Scripts/Load Files into Stack.jsx uses support scripts.

 

Edit with caution:

 

Presets/Scripts/Stack Scripts Only/CreateImageStack.jsx

 

Change line #371 from:

 

app.activeDocument.activeLayer.name = this.fName;

 

To:

 

app.activeDocument.activeLayer.name = this.fName.replace(/\.[^\.]+$/, ''); // Remove file extension;

 

Stephen Marsh
Community Expert
Community Expert
January 22, 2025

I'm pretty sure that this has come up multiple times before with various changes to the base code offered... I'll see what the forum search finds.

 

Another option is to run a script to loop over all top-level/root layers and remove the extension from the layer name.

 

EDIT – Similar stacking scripts here:

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/layers-creating-layers/td-p/13252109

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/combining-tiffs/m-p/13475955

 

Carson Jones
Known Participant
January 22, 2025

Yes you're right. I run this script as a tool out of Bridge. It serves the same function and behaves almost identically (no option to 'Attempt to Automatically Align Source Images' and 'Create Smart Object after Loading Layers'.).

c.pfaffenbichler
Community Expert
Community Expert
January 22, 2025

In Photoshop itself there is no Script »Load Files into Photoshop Layers«, that’s why I asked about »Load Files into Stack.jsx«. 

Carson Jones
Known Participant
January 22, 2025

I'm referring to the native tool (i.e. script) in PS and Bridge.

c.pfaffenbichler
Community Expert
Community Expert
January 22, 2025

Are you talking about »Load Files into Stack.jsx«? 

 

If you use the Script very often you may want to look into adapting it or creating one of your own (depending on your exact workflow).