Save As Tiff not Scriptable (Photoshop Error 8800)
Hi Guys, I've been developing a script to simply run on any active document and save it down into a new folder (/EDIT/TIFF) within the original documents path. I've done the exact same script with a JPEG with no errors and yet when I run this version (see below) Photoshop throws up the error: "Error 8800: General Photoshop Error occurred. This functionality may not be available in this version of Photoshop. - <no additional information availible>" Unfortunately looking through the forums I see this error 8800 appear for various reasons... most of which solutions seem to be to reinstall Photoshop (Which I have subsequently tried).
var doc = activeDocument;
var docPath = activeDocument.path.fullName;
var docName = doc.name;
var saveName2 = new File(docPath+"/EDIT/TIFF/"+docName+'.tff');
tiffSaveOptions = new TiffSaveOptions();
tiffSaveOptions.embedColorProfile = true;
tiffSaveOptions.alphaChannels = true;
tiffSaveOptions.layers = true;
var folder1 = Folder("EDIT");
//Check if it exist, if not create it.
if(!folder1.exists) folder1.create();
var folder2 = Folder("EDIT/TIFF");
//Check if it exist, if not create it.
if(!folder2.exists) folder2.create();
app.activeDocument.saveAs(SaveName2, tiffSaveOptions, true, Extension.LOWERCASE);
If anybody could give me any guidance or advice in regards to the Photoshop Error 8800, making this above script work or even providing an alternative script to do so it'd be much appreciated.
Photoshop Version: CC 2017.0.1