Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Running AppleScript from crontab' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Running AppleScript from crontab
Authored by: gxw on Nov 19, '03 07:43:38PM
PS: I seem to recall that it used to be difficult to run AppleScripts from the crontab.
No it isn't!
Answer == use osascript to call the applescript.
Sample crontab entry from my machine:
45 5 * * 1-5 osascript ~/wakeup
Osascript calls an AppleScript that starts iTunes playing @ 5:45 am monday thru friday. The ~/ is UNIX for my home directory or I could also have used
45 5 ** 1-5 osascript /Users/me/wakeup. NOTE: I have not tested this on Panther.....yet.

[ Reply to This | # ]