Re: Check for an internet connection?
Re: Check for an internet connection?
- Subject: Re: Check for an internet connection?
- From: Mark Butcher <email@hidden>
- Date: Fri, 21 Feb 2003 06:33:57 -0800
Andy
This checks the status of Internet Connect:
tell application "Internet Connect"
state of (status of current configuration)
end tell
(*
0=idle
1=connecting
2
3
4=connected
5=disconnecting
*)
MarkB
On Thursday, Feb 20, 2003, at 17:37 US/Pacific, Andy Ihnatko wrote:
What's the simplest way to check if the internet is reachable? I'm
building a new version of my AS Studio blogger app. When the time
comes to post an item, I'd like it to be smart enough to say "You're
not connected to the 'net. Would you like to cache it for later?" if
necessary.
For now, I call a shell script that pings the server, but I sense that
a better solution is out there. Ideas?
-- A.
_______________________________________________
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.
_______________________________________________
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.