Can I re-open a dialog after a user clicks Ok button?
Hi all,
I would like to catch missing input (dropdown selection) in a scripted Illustrator dialog and return the user to the dialog as it was before he clicked ok.
Right now script logic goes along these lines:
var windowResource = "dialog{\
text:'Batch Converter', \
maximizeButton:true, \
active:true\
resizeable:true}";
var aDialog = new Window(windowResource);
//add all sorts of ui elements
[...]
//show dialog
var returnValue = aDialog.show();
//user clicked ok
if (returnValue == 1) {
//check for user input
//->reopen dialog if something is missing
}
//user clicked cancel
else {aDialog.close();
}
I don't really want to mess with custom event handlers so just going back to the original dialog seems the easiest and most user friendly way right now.
Is that even possible?
Cheers,
Mike
