Latest in Features

Image credit:

Maniacally cuckoo for Mountain Lion: App Store checker shell script

Share
Tweet
Share
Save

Sponsored Links

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" 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewMultiRoom?fcId=489264329&mt=12' | grep -i "mountain lion" > /dev/null
if ($? == 0) then
echo "Available"
say "MOUNTAIN LION MAY BE AVAILABLE"
else
echo "Nada"
endif
sleep 600

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

Update: Looks like the URL changed from last year. Updated via Mark (mcackay).

All products recommended by Engadget are selected by our editorial team, independent of our parent company. Some of our stories include affiliate links. If you buy something through one of these links, we may earn an affiliate commission.
Comment
Comments
Share
Tweet
Share
Save

Popular on Engadget

The 2019 Engadget Holiday Gift Guide

The 2019 Engadget Holiday Gift Guide

View
Washington, DC sues DoorDash for allegedly misleading users about tips

Washington, DC sues DoorDash for allegedly misleading users about tips

View
'Death Stranding' and 'Control' lead Game Awards nominees

'Death Stranding' and 'Control' lead Game Awards nominees

View
Google Assistant’s latest feature is a personalized audio news feed

Google Assistant’s latest feature is a personalized audio news feed

View
NVIDIA's RTX Studio driver speeds up ray-traced V-Ray rendering

NVIDIA's RTX Studio driver speeds up ray-traced V-Ray rendering

View

From around the web

Page 1Page 1ear iconeye iconFill 23text filevr