Save an open file as PSD in current folder without prompt?
I'm trying to find a way to save an open file as a PSD (from JPG) in it's current folder without prompting me. It seems like it should be so simple. I'm using CC 2014. Using the Image Processor would work but it creates a new PSD folder. (I tried editing the imageprocessor.jsx to remove the path but it didn't work.... maybe because I tried running the jsx from my desktop instead of the script folder? I don't have access to modify the original sadly.)
So yeah, just trying to make an action that does stuff and then saves it without needing any interaction. The closest thing I've found is this script, that does everything I want EXCEPT the active document remains a JPG, instead of becoming the new PSD. so I end up having to save it anyways or open the new PSD from the folder to continue editing.
Save copy as PSD |
|---|
var doc = app.activeDocument; var Path = doc.path; var Name = doc.name.replace(/\.[^\.]+$/, ''); var Suffix = "-Copy"; var saveFile = File(Path + "/" + Name + ".psd"); SavePSD(saveFile, 8);
function SavePSD(saveFile){ psdSaveOptions = new PhotoshopSaveOptions(); psdSaveOptions.embedColorProfile = true; psdSaveOptions.alphaChannels = true; activeDocument.saveAs(saveFile, psdSaveOptions, true, Extension.LOWERCASE); } |
Thank you!
