I have the following code in a text file (myfile.applescript):
#! /usr/bin/osascript
tell application "Google Chrome" to quit
I would like Chrome to shut down each night at 9:15PM, so I added the following cron task to crontab:
15 21 * * * ~/Desktop/myfile.applescript
Unfortunately, the script is not triggering. Any thoughts?
NOTE: I am aware I can use iCal to resolve this problem. However, I'd prefer to not clutter my calendar with a daily script-triggering event.