Automating software update downloads

August 12, 2008, 12:09 PM —  Macworld.com — 

Reader John DeCarli suffers with the hell that is satellite broadband access. He writes:

I have access to the Internet via Hughes Satellite. One of the drawbacks is a limit to how much data I can download in a 24-hour period. The limit with my service is 375MB and, if exceeded, my access speed is severely reduced for 24-hours.

Downloads from Apple generally cause a problem. Like the recent iPod touch and iTunes update. It took four days to completely finish the upgrade. That was due to exceeding the download limit. Between 3AM and 6AM there is no limit to the download data. What download manager will work with the Apple software updates?

John, as someone who lived with satellite broadband for nearly three years, I am more sympathetic to your plight than you can imagine. While satellite broadband is better than nothing, a well-placed stick-in-the-eye is better than satellite broadband.

The cheap way to go is to check Software Update during the day to see what it holds. If you find something you really need, set an alarm for 3:01AM, launch Software Update from its system preference, start the download, and go back to bed.

Because I value my sleep, I prefer an automated way. For me, that way is Stairways Software's US$36 Keyboard Maestro. Using Keyboard Maestro I constructed a macro that includes these steps:

Open Software Update (It lives at System/Library/CoreServices/Software Update)

Pause for 20 Seconds (This is to give Software Update time to update its database. If it takes your Mac longer to update the database because of the slow connection, adjust accordingly.)

Type the Return Keystroke (This is to click the Install button.)

Pause for 5 Seconds (This is to give the Admin Password dialog box time to appear.)

Insert Text password (Where password is your Administrator's password.)

Type the Return Keystroke (To acknowledge that password.)

Create the macro so it's triggered at 3:01AM every day and you should be good to go.

Before committing to it and then wondering why it doesn't work, try a couple of dry runs during the day. You may encounter a problem, for example, when Software Update tosses up a dialog box that demands that you click a Restart button in order to begin the process. Because you won't actually begin the download until you've run through every step, you can conduct the dry run without worrying about exceeding your bandwidth.

Commenters: I tried to come up with a way to do this via Automator because I prefer a free solution to one that costs $36, but I was stumped when it was time to enter a password. If you have The Way (or, at least, Another Way) I'm all ears.

» posted by ITworld staff

Macworld.com

I like it!
Comments

waves

Up in the air there are waves, we can not see them but sensitive people like me can feel them. When they are strong during the day . Run.. get away from them There are handicapped ppl out there that can not talk but they can feel the sattilite , microwaves, Ipod waves cell phone waves and it disturbs them greatly

Volunteer for CLW almost 19 years
| reply
Free books

Build your tech library with our book giveaways.

Windows PowerShell 2.0 Unleashed
By Tyson Kopczynski, Pete Handley, Marco Shaw; Published by Sams

Windows PowerShell Unleashed will not only give you deep mastery over PowerShell but also a greater understanding of the features being introduced in PowerShell 2.0–and show you how to use it to solve your challenges in your production environment. Enter now!

 

Ubuntu Server Administration
By Michael Jang; Published by McGraw-Hill Osborne Media

Realize a dynamic, stable, and secure Ubuntu Server environment with expert guidance, tips, and techniques from a Linux professional. Ubuntu Server Administration covers every facet of system management -- from users and file systems to performance tuning and troubleshooting. Enter now!

Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

More Resources