In my javascript, in Windows 7, Photoshop CS2 & Photoshop CS5, it throws an error:
Error 8800: General Photoshop error occurred. This functionality may not be available in this version of Photoshop.
- Could not save a copy as "C:...\wcb-010B-11Y.jpg" because the file could not be found.
Line: 458
-> docRef.saveAs( saveFile, jpgSaveOptions, true, Extension.LOWERCASE );
here is a summary of the code to save the image:
Code: Select allvar selectedSaveDir = "~/Desktop/";
var sFileNamePreFix = "wcb-";
var docName = app.activeDocument.name;
var docNewName = docName.substr( 0, docName.length - 4 ); // strip file extension
var sNewDocName = sFileNamePreFix + docNewName + ".jpg"
var sNewFileName = selectedSaveDir + sNewDocName;
//alert( "sNewFileName = " + sNewFileName ); // test to verify correct location
var saveFile = new File(sNewFileName);
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.quality = 12;
docRef.saveAs(saveFile, jpgSaveOptions, true, Extension.LOWERCASE);
In Windows XP, this script works very well in CS2 with no problems.... just in Windows 7 is where this issue occurs using CS2 or CS5.
The problem seems to be similar to : Photoshop Javascript scripting saving and closing document But I don't know his OS.
I've added the "alert(" and confirmed the save folder & name is correct and can be saved to, but same issue.
Could it be a UAC issue in Windows 7 ? and how do you Fix it ? I've turned off all UAC settings (I think I did it correctly), but it still occurs.
Any Help ?
Photoshop javascript save error 8800 in Win7
-
Gattung
Photoshop javascript save error 8800 in Win7
I've run into this same situation.
Anyone have any ideas?
Thanks,
Anyone have any ideas?
Thanks,
-
Gattung
Photoshop javascript save error 8800 in Win7
I tracked it down to a "/" forward slash in my named layergroups. Now I just have to figure out how to not allow the script to use bad characters
-
Mike Hale
Photoshop javascript save error 8800 in Win7
You need to replace the slash with something else. Either by renaming or using a String.replace.
var mySafeDocName = myDocName.replace('/','_');
var mySafeDocName = myDocName.replace('/','_');
-
Mike Hale
Photoshop javascript save error 8800 in Win7
You need to replace the slash with something else. Either by renaming or using a String.replace.
var mySafeDocName = myDocName.replace('/','_');
var mySafeDocName = myDocName.replace('/','_');