How to avoid sequence numbers when exporting layers in Photoshop CC2015?


Question

I am using Photoshop CC2015 to modify and then export layers as files. While saving, Photoshop automatically adds a number sequence to the file.

I do not want this numbering. All I want is 'prefix_layername.jpg', not 'prefix_0001_layername.jpg'.

I've read a thread which described a solution for CS5, but this doesn't seem to work for CC2015. I understand we need to edit the 'Export Layers To Files.jsx' which is located at:

/Applications/Adobe Photoshop CC 2015/Presets/Scripts

Can someone give me the changes that need to be made at this file to avoid the numbering?

1
0
4/13/2017 12:46:00 PM

Accepted Answer

This worked for me in Adobe Photoshop CC 2015.5 on a Mac.

  1. On a Mac, go to Applications > Adobe Photoshop CC 2015.5 > Presets > Scripts > Export Layers To Files.jsx

  2. Open the .jsx file and comment out the the contents of line 1083 by applying two forward slash characters (//) to the beginning of the line. The resulting code will look like this:

    // fileNameBody += "_" + zeroSuppress(i, 4);
    
  3. Save the .jsx file changes.

  4. Close and reopen Photoshop CC, then run File > Export > Layers to Files...

1
8/26/2016 7:38:00 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
^