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:

  1. Locate the file “Export Layers to Files.jsx”
  2. Find it at [your drive]:Program Files\Adobe\Adobe Photoshop CC 2019\Presets\Scripts
  3. Optional: Copy and paste the file “Export Layers to Files.jsx” as a backup somewhere.
  4. Now open the file with Wordpad.
  5.  Search for the line fileNameBody += “_” + zeroSuppress(i, 4); and add // infront like this, 
    // fileNameBody += “_” + zeroSuppress(i, 4);
  6. Next, search for the line fileNameBody += “_” + layerName; and change it to fileNameBody += layerName;
  7. Save the file and close it. 
  8. Run Adobe Photoshop and export accordingly. 
 
*Updates on 17th Nov 2019 
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.

4 Comments

  1. wendel November 22, 2019 at 11:56 am

    script cc 2020 works on cc 2019. Thanks!!!

    Reply
    1. Matto Tomato - Site Author November 22, 2019 at 12:37 pm

      Awesome and welcome! 😀

      Reply
  2. macedon November 23, 2019 at 5:55 am

    it doesn’t have that line

    Reply
    1. Matto Tomato - Site Author November 24, 2019 at 5:49 pm

      Hi. maybe you can try searching for a word, e.g. “fileNameBody” only. I can’t find the whole line when I use notepad to open the file. Hope this works. 😀

      Reply

Leave A Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.