Is there a way to export a document in Photoshop using an action that would preserve the file name? Example: I have a document called Home.psd. I'd like to run an action, and it would create a Home.png in some specified location, like the Desktop. I can do all of this pretty easily by recording the action, except to set the save destination and file type, I must enter a name.

  • You might want to take a look at this ( newest foles can be found in github ): graphicdesign.stackexchange.com/questions/16915/… The only big difference is that it saves .psd. it wouldn't be difficult to change it to save a png instead... or additionally
    – Joonas
    Apr 19, 2013 at 5:54
  • ...and I love you too, man.
    – Joonas
    Apr 19, 2013 at 6:25
  • Thanks! I ended up editing his script to make my own: github.com/edwardloveall/Photoshop-Export-PSD-script What's proper etiquette for posting it somewhere? Should I comment on plainclothes' answer to link to this or make my own answer? Apr 20, 2013 at 16:15
  • 1
    Since it is what you were looking for, posting it as an answer would be a good thing.
    – Joonas
    Apr 20, 2013 at 16:30

3 Answers 3


I ended up making my own script based on advice from plainclothes and a link from Joonas

You can find the script here: https://github.com/edwardloveall/Photoshop-Export-PSD-script

By default, it saves to the Desktop, but just edit the line

var desktop               = '~/Desktop';

to change the destination.


If you want to be completely hands-off I believe you need a script.

If you had a lot of files to process, you could batch the action and automate the name and destination there. But that still requires your intervention at the start.


You can create an action to save the images as you want and then simply use this action in the "batch" command found in the menu "file" then "automate"

There you can choose what folder to use for the images you want to process, and also WHERE you want them to be saved.

You can also simply select the "extension" as shown in the screenshot below; it will save your image with the same name, but will add the right extension.

Automate Batch

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.