Script that Automatically Does Something Every Day
On Macs running 10.5 or earlier, I'll use crontab. 

On Macs running 10.6 and newer, I'll use launchd. More details here 
https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html