• 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
Re: Check for an internet connection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Check for an internet connection?
      • From: "John C. Welch" <email@hidden>
    • Re: Check for an internet connection?
      • From: John W Baxter <email@hidden>
References: 
 >Check for an internet connection? (From: Andy Ihnatko <email@hidden>)

  • Prev by Date: Re: PDF Workflow scripts
  • Next by Date: re: Newbie Questions
  • Previous by thread: Check for an internet connection?
  • Next by thread: Re: Check for an internet connection?
  • Index(es):
    • Date
    • Thread