Skip to main content
marcelo38653217
Participant
March 31, 2023
Question

Export layers to files only works when you give the file a name first.

  • March 31, 2023
  • 1 reply
  • 260 views

I always got the error message 'Error: The requested action requires that the target document is the frontmost document.' when trying to export multiple layers to files. I figured out that you have to give your PSD file a name first (and save it) before this script works. Photoshop should know this and tell the user he has to give it a name first and save it. 

 

The error message is not helping at all, since the document was the only open document.

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
April 4, 2023

You are right that the error-message is unrelated to the problem.

But why would you be working on unsaved files to begin with? 

 

The Script »Export Layers To Files.jsx« is, if I remember correctly, pretty voluminous, but if the issue is a recurring one for you you could try to amend it nonetheless.