Use cron to automate iSync at non-standard intervals

Dec 09, '03 08:54:00AM

Contributed by: macubergeek

I love the way Apple makes complex things simple. But being the lazy nerd that I am ... it can never be too easy. Up until recently, I've launched iSync from its menubar icon (you can set this inside the iSync preferences).

Now I have a cronjob that automatically launches iSync and tells it to synchronize me on both my iBook and my home iMac. It happens every two hours during work hours of three specific days of the week. Here's the cronjob I set with crontab -e on both machines:


0 8,10,12,14 * * 1,2,3 osascript -e 'tell application "iSync" to synchronize'
Translation: at 8am, 10am, 12pm and 2pm on Mondays, Tuesdays and Wednesdays, tell AppleScript to tell iSync to do its thing.

Comments (14)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20031201172150673