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


Click here to return to the 'A 'Go to work!' reminder script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A 'Go to work!' reminder script
Authored by: phil4u2 on Mar 14, '04 08:00:12AM

stupid question... (or newbie question...)

Now that I got the script, let's say in my home dir...

How do I make it a cron job to be executed every day at, let's say 11.55 am?



[ Reply to This | # ]
A 'Go to work!' reminder script
Authored by: encro on Mar 14, '04 10:41:15AM
To open up your crontab type:
crontab -e
and insert the following text:

#minute   hour   mday   month   wday   command
 55       11     *      *       *      osascript -e 'say "Time to go to work"'

You can replace the osascript command with ~/yourscriptname if you like.

Cheers

[ Reply to This | # ]
A 'Go to work!' reminder script
Authored by: encro on Mar 14, '04 07:19:32PM
Ammendment after a quick test in the terminal:
say "Time to go to work"
executes much quicker than the applescript interpreter using:
osascript -e 'say "Time to go to work"'


[ Reply to This | # ]
A 'Go to work!' reminder script
Authored by: macubergeek on Mar 14, '04 10:20:05PM

I have a directory in my home directory called 'scripts'
I put my scripts there and launch them with:
$HOME/scripts/script_name
or
~/scripts/script_name
see the other comments on how to set up a cron job.



[ Reply to This | # ]