Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to start Internet Connect at login' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to start Internet Connect at login
Authored by: pecosbill on Mar 14, '05 07:14:38PM
I would do something like this (not tested)

tell application "Internet Connect"
  launch -- starts in background
  try
    connect
    -- if it fails to connect, it will go to the error section skipping the next message
    display dialog 'Connected to the Internet'
  on error
    display dialog 'FAILED to connect to the Net'
    -- there are fun and fancy things to do here that I don't have with me like showing the actual error returned.
  end try
  quit
end tell

---
Pecos Bill

[ Reply to This | # ]