Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Re: Can Applesc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 11 Topic 1557 of 1611
Post > Topic >>

Re: Can Applescript tell if computer is online?

by biz@[EMAIL PROTECTED] Jan 2, 2008 at 05:14 PM

On Jan 3, 11:20=A0am, Jolly Roger <jollyro...@[EMAIL PROTECTED]
> wrote:
> In article <1ia44xt.13adiv31by0hzyN%itera...@[EMAIL PROTECTED]
>,
> =A0itera...@[EMAIL PROTECTED]
 (Michael Hawelka) wrote:
>
>
>
> > <b...@[EMAIL PROTECTED]
> wrote:
>
> > > if the computer is not connected to
> > > the Internet I would like it to execute some code
>
> > how about something like
>
> > set theResult to ""
> > try
> > =A0set theResult to (do shell script "ping -o -t 2www.google.com")
> > end try
> > if (theResult contains "1 packets received") then
> > =A0display alert ("i am online")
> > else
> > =A0display alert ("i am offline")
> > end if
>
> But what if google.com goes down for maintenance?
>
> --
> Note: Please send all responses to the relevant news group. If you
> must contact me through e-mail, let me know when you send email to
> this address so that your email doesn't get eaten by my SPAM filter.
>
> JR

Thanks. That almost work. I guess I conceiled some information. What
you told me works great if my ethernet cable is unplugged. However,
sometimes my router deletes my password and user id. It is for these
situations I need the Applescript. When that happens I am online but I
can only reach my ISP's site telling me that Ihave the wrong password.
Unfortunately, I can still ping websites (although I cannot browse the
we because I always get my ISP's website). So the script can actually
tell if I can go to a website (like google. and I don't care if it's
down for maintanance. Happens rarely). Sorry I did not disclose all
information . thanks for your help




 11 Posts in Topic:
Can Applescript tell if computer is online?
biz@[EMAIL PROTECTED]   2007-12-31 19:22:34 
Re: Can Applescript tell if computer is online?
Sander Tekelenburg <us  2008-01-01 18:50:28 
Re: Can Applescript tell if computer is online?
biz@[EMAIL PROTECTED]   2008-01-02 05:38:29 
Re: Can Applescript tell if computer is online?
iterate4@[EMAIL PROTECTED  2008-01-03 00:00:15 
Re: Can Applescript tell if computer is online?
Jolly Roger <jollyroge  2008-01-02 18:20:28 
Re: Can Applescript tell if computer is online?
biz@[EMAIL PROTECTED]   2008-01-02 17:14:25 
Re: Can Applescript tell if computer is online?
Sander Tekelenburg <us  2008-01-03 14:56:24 
Re: Can Applescript tell if computer is online?
biz@[EMAIL PROTECTED]   2008-01-03 16:13:55 
Re: Can Applescript tell if computer is online?
Sander Tekelenburg <us  2008-01-04 05:58:56 
Re: Can Applescript tell if computer is online?
Jolly Roger <jollyroge  2008-01-03 23:14:15 
Re: Can Applescript tell if computer is online?
biz@[EMAIL PROTECTED]   2008-01-03 17:05:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 22:54:05 CDT 2008.