Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

On Photoshop CS5, I had it set up so that whenever I saved a .psd, whether it were through cmd-s or the file menu, it would also save a file as a .png with the same name.

I upgraded to CS6 and now I have no idea how to recreate this. Sadly, or stupidly, I uninstalled CS5 so I can't attempt to troubleshoot that way.

Does anyone know how to do this? I don't want to have to run an action every time I want to save a psd as a png, I want it to happen automatically, every time I save.

I appreciate all and any help here.

Thank you, Jacob

share|improve this question
It had to be some other script. Photoshop is not capable of doing what you describe simply by using the Save or Save As command. Are you certain you didn't have some sort of folder action or something in place? –  Scott Oct 2 '12 at 6:22
How exactly did you do this in CS5? I habe never heard of this. –  KMSTR Oct 2 '12 at 6:36
KMSTR - see below! And yes it does Scott, as I learned. –  Jacob Raccuia Oct 2 '12 at 22:20

2 Answers 2

up vote 8 down vote accepted

You can create your own script if you want, here's a simple one:

function main(){ 
    var Name = app.activeDocument.name.replace(/\.[^\.]+$/, ''); 
    var Ext = decodeURI(app.activeDocument.name).replace(/^.*\./,''); 
    if(Ext.toLowerCase() != 'psd') return; 
    var Path = app.activeDocument.path; 
    var saveFile = File(Path + "/" + Name +".png"); 
    if(saveFile.exists) saveFile.remove(); 

function SavePNG(saveFile){ 
    pngSaveOptions = new PNGSaveOptions(); 
    activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE); 
  • To use this go to File > Scripts > Scripts Event Manager
  • Tick "Enable Events to Run Scripts/Actions"
  • Select "Save Document" from the Photoshop Event dropdown
  • In the next dropdown box select your new script and click add.

Now every time you do a save, the script will check if you are saving it as a PSD, if it is, it will save a PNG with the same name to the same location.

Note: this will overwrite an existing PNG if there is already one in the save location.

share|improve this answer
Since you are doing this as an event triggered action (as opposed to manually running the script on demand), it is good form to PROMPT FOR CONFIRMATION before replacing the file. –  horatio Oct 2 '12 at 20:50
This is exactly what I wanted. To clarify for other users, if you don't know. Save this as a .jsx file to CS6Application/Presets/Scripts/events scripts only/ –  Jacob Raccuia Oct 2 '12 at 22:14

Are you sure it was a PNG and not a JPEG? To save a JPEG every time you save your document, open the Script Events Manager.

Script Events Manager

Then enable events to run scripts and set up an event to save a JPEG when you save your document.

Script Events Manager

You could probably also set up an Automator Workflow in OS X to watch a folder and duplicate and convert PSDs to PNGs.

But it seems likely that the Script Events Manager method is what you had set up previously.

share|improve this answer
So the Save Extra JPEG action is supplied? Could that not be adapted to save as PNG? –  e100 Oct 2 '12 at 11:53
Sure could. Looks like Krazer's built something similar! Excellent. –  Marc Edwards Oct 3 '12 at 0:22

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.