Is this site down script

May 18th, 2013
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (* quick way to check if a domain is down, save it as an .app and put it in the Dock for 1-click access!
  2. (C) 2013
  3. *)
  5. display dialog "enter the domain to check" default answer ""
  6. set theSite to text returned of the result as string
  7. do shell script "scutil -r " & theSite
  8. if the result = "Reachable" then
  9.     display dialog "Site is up!"
  10. else
  11.     display dialog "Site is not reachable!"
  12. end if
RAW Paste Data