Skip to content

Instantly share code, notes, and snippets.

@AlanQuatermain
Created June 11, 2012 19:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlanQuatermain/2912081 to your computer and use it in GitHub Desktop.
Save AlanQuatermain/2912081 to your computer and use it in GitHub Desktop.
Check whether the iOS Dev Centre is available yet, for 30 minutes
-- Thirty minute timeout
with timeout of 108000 seconds
repeat while true
delay 5
set baseurl to "https://developer.apple.com/devcenter/ios/index.action"
set curlshellcode to "curl " & baseurl
set theshellresult to do shell script curlshellcode
if theshellresult does not contain "maintenance" then
tell me to activate
display dialog "IT'S BACK UP" buttons "FUCKING YES!" default button "FUCKING YES!"
exit repeat
end if
end repeat
end timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment