As a designer I often have to edit and export images in batch with Adobe Photoshop. By default the function “Export Layers to Files” will add a number sequence for each file.
This is unnecessary for such scenario and a waste of time to rename very single file especially if you’re exporting 50~80 images per batch. And I did painstakingly renamed every single file when I was a junior designer. ლ(ಥ Д ಥ )ლ
How to remove the number sequences?
This default setting can’t be changed in Photoshop’s main menu, you need to change the coding in the script instead. And here’s the way to change it:
- Locate the file “Export Layers to Files.jsx”
- Find it at [your drive]:Program Files\Adobe\Adobe Photoshop CC 2019\Presets\Scripts
- Optional: Copy and paste the file “Export Layers to Files.jsx” as a backup somewhere.
- Now open the file with Wordpad.
- Search for the line fileNameBody += “_” + zeroSuppress(i, 4); and add // infront like this,
// fileNameBody += “_” + zeroSuppress(i, 4);
- Next, search for the line fileNameBody += “_” + layerName; and change it to fileNameBody += layerName;
- Save the file and close it.
- Run Adobe Photoshop and export accordingly.
There seems to have some changes with Photoshop CC 2020’s script.
Download this script file if you’re using the latest Photoshop CC 2020 here.
Point to note:
Adobe tends to overwrite the script file during software update. Just keep an extra copy and overwrite the file or re-do the above steps will do.