Can anyone tell me the correct command to turn all alerts off in a PS CS5 jsx. I've tried the following which doesn't seem to work:
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
I've had issues with this in the past with Illustrator and know that the command has changed a bit from version to version. I've tried various options that worked in Illustrator in the past but no luck.
I think this was CS3
app.userInteractionLevel = UserInteractionLevels.neverInteract;
and this was pre-CS3
Any help appreciated
In Photoshop it would be...
app.displayDialogs = DialogModes.NO;
I've tried that and it doesn't give an error but it doesn't switch off the dialogs
bye the way.... the dialog I want to switch off is the one to save a file before closing. Maybe this is not possible in PS?
Sorry, I was being dumb. I solved my problem with:
Thanks for the answer to my original question anyway.