applehelpwriter

Is this site down script

May 18th, 2013
150
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) Applehelpwriter.com 2013
  3. *)
  4.  
  5. display dialog "enter the domain to check" default answer "www.example.com"
  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