• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dialog Monitoring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Script Editor 2 beta 2: how come app launches?
  • Next by Date: Re: AppleScript --> HTML
  • Previous by thread: Re: Script Editor 2 beta 2: how come app launches?
  • Next by thread: Re: Archives (Back Online)
  • Index(es):
    • Date
    • Thread