Photoshop: Export Layers to Files .jsx script STILL Broken

  • 2
  • Problem
  • Updated 2 weeks ago
  • (Edited)
Hello, in future Photoshop, for desktop, releases please, please, please, please include a fixed "Export Layers To Files.jsx". The current one prefixes a large number of digits to the front of my exported files and it's unproductive to have to clean up my file names. Online, I've found a fixed script, and it works great, but after every Photoshop update, the broken script is back, so I have to take time to reload the fixed script. This is silly, just put a properly fixed script into Photoshop to save us all time. Thank you. For more information on the "Export Layers To Files.jsx" just search online "Export Layers To Files.jsx broken" and you'll see the included script is broken. Thank you for your time.
Photo of Ryan Kester

Ryan Kester

  • 3 Posts
  • 0 Reply Likes
  • frustrated

Posted 4 weeks ago

  • 2
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 17066 Posts
  • 2906 Reply Likes
Can you post a link to the script change you prefer?

One way to prevent this from happening is to not replace the installed version. Instead name the preferred JSX to something different and it won't get overwritten.
Photo of Ryan Kester

Ryan Kester

  • 3 Posts
  • 0 Reply Likes
Great idea, not sure why I didn't think of that. Thank you. I did have to go into the script and change the "menu" name otherwise I would see 2 "Layers to Files..." options. Here is the link to the script I use... https://gist.github.com/davestewart/4529727

Or follow this...

https://community.adobe.com/t5/photoshop/remove-number-sequence-when-quot-export-layers-to-files-quo...

I just tried the "Layers to Files" script in the latest version of Photoshop, 21.2.0 and it is still broken, adds a bunch of extra unnecessary digits. Facepalm

Just wish Adobe would simply bake in a fixed version. If you search online this broken script has been an issue for a very long time.
(Edited)
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 17066 Posts
  • 2906 Reply Likes
Well, I wouldn't say it's broken. It's behaving as it was designed years ago. You want a way to disable the serialization of layer names. If we made this change we'd probably need a checkbox to enable/disable it.
Photo of David Converse

David Converse

  • 939 Posts
  • 275 Reply Likes
You could write a short script that calls the default and then strips off the leading digits with added code. That would be my solution if I had this issue.