GenericUI - ESC handling
Posted: Tue Jun 22, 2010 8:57 am
Hi,
I've setup a project based on GenericUI batch window: my process function contains a error handling section like that:
Code: Select allcatch(e)
{
if (e.number == 8007) {
alert ("The script has been halted! You will now get back to your original, untouched image.")
// duplicate document is closed without saving, etc
}
The problem is that, within the batch, a single ESC key press actually stops the elaboration of one image, but the batch still goes on, opening the following file.
How could I link the error handling of my process function to the error handling of the batch? So that the batch comes up with its own alert and then quit.
Thanks in advance,
Davide
I've setup a project based on GenericUI batch window: my process function contains a error handling section like that:
Code: Select allcatch(e)
{
if (e.number == 8007) {
alert ("The script has been halted! You will now get back to your original, untouched image.")
// duplicate document is closed without saving, etc
}
The problem is that, within the batch, a single ESC key press actually stops the elaboration of one image, but the batch still goes on, opening the following file.
How could I link the error handling of my process function to the error handling of the batch? So that the batch comes up with its own alert and then quit.
Thanks in advance,
Davide