Dialog Monitoring
Dialog Monitoring
- Subject: Dialog Monitoring
- From: Jim Lindholm <email@hidden>
- Date: Sun, 17 Aug 2003 13:13:37 -0700
I've been trying to find some way to monitor dialogs that an
application might display... in this case Internet Connect. Internet
Connect only sends status for 4-5 situations, but will put up a dialog
for other situations which will not let it connect ie: no dial tone, of
which there is no status code when polling status.
If I can find a way to monitor when Internet Connect displays a dialog,
I can exit a repeat loop before timeout ends script when IC encounters
a problem.
Part of script I'm trying to make a little more intelligent follows.
Thanks, in advance... Jim
with timeout of 45 seconds --try to connect for 45 seconds, otherwise
exit with error
connect
repeat until (result !A 0)
get state of status --check status of default connection
if (result = 4) then
exit repeat
end if
delay 1
end repeat
end timeout
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.