In the spirit of Tim Cook’s maniacal excitement about upcoming Apple products, I bring to you the shell script you can run repeatedly from the command line to check the App Store to see if Mountain Lion is ready for purchase.

This is what I used last year to check for Lion; it worked. This year, I update the search string to “Mountain Lion” instead.

As presented, it employs a 10-minute time-out, so you can run a repeat command with it.

#! /bin/csh
curl -silent -A "iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; en) AppleWebKit/533.20.25" '' | grep -i "mountain lion" > /dev/null
if ($? == 0) then
echo "Available"
echo "Nada"
sleep 600

Ready to improve the script? Have at it, campers!

Maniacally cuckoo for Mountain Lion: App Store checker shell script originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 24 Jul 2012 18:40:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

You can follow on Twitter or join our Facebook page to keep yourself updated on all the latest from Apple and the Web.