Ok so I wake up and hop right on my mac...I'm sure you are all the same...but I felt a need to have a daily reminder that it's time to leave for work. I launch this shell script from a cron job at my desired departure time:
#!/bin/bash
hour=`date | awk {'print $4'} | cut -d":" -f1`
min=`date | awk {'print $4'} | cut -d":" -f2`
if [ $hour -gt 12 ]; then
say -v Fred `expr $hour - 12`
else
say -v Victoria $hour
fi
say -v Victoria $min
say -v Victoria "time to go to work"
exit
Remember to make it executable (chmod 755 script_name)...
Mac OS X Hints
http://hints.macworld.com/article.php?story=20040304124915289