Skip to content

Instantly share code, notes, and snippets.

@AriX
Forked from holgr/gist:3173325
Created July 25, 2012 08:16
Show Gist options
  • Save AriX/3175034 to your computer and use it in GitHub Desktop.
Save AriX/3175034 to your computer and use it in GitHub Desktop.
Script to check for Mac OS X 10.8 Mountain Lion
#!/bin/bash
while true; do
if curl -silent -A "iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; en) AppleWebKit/533.20.25" 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewMultiRoom?fcId=489264329&mt=12&s=143461' | grep -i "mountain lion" ; then
echo "Available"
growlnotify -m "Mountain Lion is available" -t "App Store"
say "MOUNTAIN LION MAY BE AVAILABLE"
break
else
echo "Nada"
fi
sleep 120
done
@igul222
Copy link

igul222 commented Aug 1, 2012

lol- you know mountain lion GM has been available for almost a month from the developer site? :)

@AriX
Copy link
Author

AriX commented Aug 1, 2012

Of course, haha... I wrote this for some people online who wanted a script to find out when it becomes available. I'm still on 10.6 Snow Leopard myself :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment