Dan Wood is co-owner of Karelia Software, creating programs for the Macintosh computer. He is the father of two kids, lives in the Bay Area of California USA, and prefers bicycles to cars. This site is his weblog, which mostly covers geeky topics like Macs and Mac Programming.
Useful Tidbits and Egotistical Musings from Dan Wood
Categories: Mac OS X · Cocoa Programming · General · All Categories
permanent link
· Topic/MacOSX
|
Use Cronnix (or if you're brave, edit your crontab file manually) to run your reminder script whenever you wish. In my case, I have a line in my crontab file to invoke my "remind_cvs" script:
30 16 * * * /Users/dwood/bin/remind_cvs
#!/bin/shThere are more ways for cron to interact with you, such as Running an AppleScript. For instance, this will just pop up a dialog in the Finder at 5:30 PM every day.
pushd ~/Development/Watson/Current
echo "---- Reminder to check in some files! ---" > /tmp/cvs_output
cvs -n -q update | sort >> /tmp/cvs_output # Show me what files are modified
open -e /tmp/cvs_output # Open this file in TextEdit
popd
30 17 * * * /usr/bin/osascript -l AppleScript -e 'tell Application "Finder" to display dialog "Did you check in your files?" 'Although for basic alarms, there's always Nicholas Riley's Pester.