In the script I am trying to make a selection from a Java Dialog after the Java Dialog is automatically invoked from a drag and drop event.

It seems that the "make selection" step wants to execute before the "drop" has had time to open the dialog ( so I can't make the selection in the dialog ). If I throw a "wait" in there, it just "waits" directly after the drop and the dialog doesn't after the wait is done, it STILL tries to make a selection in the dialog that isn't open yet, because the launching/opening of the dialog is waiting for the WAIT statement to be done.

I have also tried while loops to wait until the Java Dialog exists or is "enabled", but it is the same problem. Any line of script that I place between the DRAG and DROP and the MAKE SELECTION happens BEFORE the java dialog is brought up.

Any ideas? Thanks.