Copy link to clipboard
Copied
Usually using a try/catch statement will let me hide error messages, but for some reason it's not working for this one:
I've got activeDocument.save() in a try/catch for this exact reason yet it's still displaying this message if it fails. Any idea why?
What if you add this before the save?
// remember the dialog modes
gSaveDialogMode = app.displayDialogs;
app.displayDialogs = DialogModes.NO;
You could also try to write a temp file to your destination and add logic to handle the "no write access" issue you are facing.
Copy link to clipboard
Copied
What if you add this before the save?
// remember the dialog modes
gSaveDialogMode = app.displayDialogs;
app.displayDialogs = DialogModes.NO;
You could also try to write a temp file to your destination and add logic to handle the "no write access" issue you are facing.
Copy link to clipboard
Copied
Amazing, that's done the trick, thank you!
You could also try to write a temp file to your destination and add logic to handle the "no write access" issue you are facing.
Yup, I am calling a 'force save' function that I wrote in the catch to work around the access error