Is this site down script

applehelpwriter May 18th, 2013 106 Never
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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand