It’s probably nicer to schedule this with iCal instead of crontab. Create a new iCal event, and add an alert for that event that runs your script. You can easily and visually configure the event to repeat only on weekdays, and the best part is that you can simply delete or modify single instances of the recurring event to deal with exceptions like holidays.
Shameless plug. I always have trouble waking up. Since the Mac App Store came out this year, I've been working on a simple alarm clock app called "Mornings" to do just this (play iTunes or custom MP3s). It actually uses AppleScript to tell iTunes what to play for the iTunes option, so it works with whatever is in your playlists. (The "con" to this is that iTunes automatically opens when the alarm clock plays -- unlike other, more fancy apps, that load the playlists from iTunes but roll their own playback behavior.) Or you can just add your own MP3s and the app won't open iTunes.
I haven't posted it on HN before, but I'd be absolutely grateful if anyone tried it out. As a developer I get some promo codes, so here are some codes (hit Featured, then Redeem to grab it. Or if none of them work, e-mail me and I'd be happy to give you one.)
Back in the days of Mac OS 9 (IIRC), it was possible to schedule the boot time of Macs, and have a script automatically play the CD present in the drive.
I don't remember the very details because I only used the (second hand) Mac for a few weeks, and the scheduler wasn't reliable (anymore?). But still, it was a cool trick.
This is very cool. I looked for this when I bought my MBP, but I didn't find the option. A quick google trip and I found that you do it from the Energy Saver preference pane.
Thanks for the tip.
On a tengential note: Is it possible to turn on the screen backlight programmatically?
Since OS X 10.6.3, the backlight remains off when waking up from hibernation (this is documented in [1]). The proposed solution is to delete the related plist, which resets the hibernate mode to the default settings that are useless for me. My current solution is to close back the lid for a split second in order to trigger the hibernation process, then to fiddle with the arrow keys to abort it. I'd prefer something more elegant.
I don't have that problem on my MBP with 10.6.8. How are your Energy Saver preferences set up?
Trashing the plist and resetting it to how you like it might work--it's possible that the plist is corrupted.
I'll try to reset the plist, then, thanks for your help.
Battery Power Adapter
Computer sleep: 10 min 45 min
Display sleep: 2 min 3 min
Put HD to sleep: Yes Yes
Wake up from LAN: Yes Yes
Dim before sleep: Yes Yes
Boot after power failure: No
I've got an old laptop running BSD, and for those days that I absolutely need to be awake at a certain time I tend to schedule, using at, for a cat /dev/random > /dev/snd. Never fails to wake me up :P