PDA

View Full Version : Simple ping script


Pingling
08-02-2010, 11:21 AM
Hi all, absolutely clueless in regards to applescript, but i was hoping if i could get some help with this.

I'd like to make an app that displays whether there is an established internet connection at any given time.

The Pseudo shows how simple it would be.

Ping google.com
or
apple.com
other

if = Host responding
0% packet loss

then = display dock icon: dead

else = display dock icon: alive

A mock up it should look like this:

http://img411.imageshack.us/img411/9134/screenshot20100802at165.png

Possible?

renaultssoftware
08-02-2010, 05:24 PM
I don't think you can do this using plain AppleScript. Ask the folks in the Developer forum if you want help with Objective-C

Akama
08-13-2010, 09:07 AM
I would like to see this, if you ever get it to work.