var myDoc = app.activeDocument; myDoc.exportFile("C:/Users/Home/Downloads/Blank3.jpg", ExportType.JPEG)
var myDoc = app.activeDocument; myDoc.exportFile("C:/Users/Home/Downloads/Blank3.PSD", ExportType.Photoshop)
I've checked the documentation, which specifically called out that for photoshop I must include the file
extension (PSD) in the file specification, but that hasn't helped. What am I doing wrong?
It's probably something with the export options you need to set. Some of that stuff doesn't work without explicitly setting some of those options. Check this:
1. The first arguement should be a file, not just a path.
2. Despite what the documentation shows, the constant should be all caps.
app.activeDocument.exportFile(new File("C:/Users/Home/Downloads/Blank3.PSD"), ExportType.PHOTOSHOP);
Thanks! Capitalizing the constant was what did it.