Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
You might want to take a look at this ( newest foles can be found in github ):… 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 '13 at 5:54
...and I love you too, man. – Joonas Apr 19 '13 at 6:25
Thanks! I ended up editing his script to make my own: What's proper etiquette for posting it somewhere? Should I comment on plainclothes' answer to link to this or make my own answer? – Edward Loveall Apr 20 '13 at 16:15
Since it is what you were looking for, posting it as an answer would be a good thing. – Joonas Apr 20 '13 at 16:30
up vote 2 down vote accepted

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

You can find the script here:

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

var desktop               = '~/Desktop';

to change the destination.

share|improve this answer
Don't forget to mark your answer as accepted if your solution fixed the problem. – Johannes Apr 20 '13 at 17:53

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.

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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