Ah, yes, iconify, I know him well. Well, I tried that and while it nicely DOES iconify the main window, the Dialog box is iconified as well. Sorry about that. I thought it was a good idea as well.
The "find the flag" idea based on the fact that messageBox is related to Dialog is good as well. An exercise for all.
Why am I doing all of this? I'm running a script that is called by another (seperate Perl invocation) to do some tasks. I thought that having things like 'alert boxes' and 'dialog boxes' (admitally modal things) would be something desirable. So here I am. And so it goes.....