Hi everybody!
I'm getting Error 8800 when saving certain PSDs out as a JPG. The error says Error 8800. General Photoshop error occured <No additional information available>
Line:18
-> {activeDocument.saveAs(jpgFile, jpgSaveOptions, true, Extension.LOWERCASE);
But, like I say, it works fine for some PSD files and not for others. I'm just not sure why though - it's not like i've included path infomation or an extra channel or something.
Here's the code
<code>
// LAZY SAVE AS JPG
var srcDoc = app.activeDocument;
docName = app.activeDocument.name.substring(0,app.activeDocument.name.length -4)
filePath = srcDoc.path + '/' + docName + '.jpg';
var jpgFile = new File(filePath);
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.formatOptions = FormatOptions.OPTIMIZEDBASELINE;
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = 12;
try
{activeDocument.saveAs(jpgFile, jpgSaveOptions, true, Extension.LOWERCASE);
}
catch(e)
{
alert(e)
}
</code>