|
|
laundry reminder
I wrote the following in order to remind myself of laundry, etc.
It's a 'nag me in N minutes with message M' sort of deal. With the exception of the control-D's below, you should be able to cut and paste pretty easily, and it'll work (provided you've got a ~/Library/init/tcsh directory and a ~/bin that's in your $PATH). If you don't have ~/bin or init/tcsh set up, you may want to consult this hint.
cat > ~/bin/speak_reminder
^d (hit control + d to stop dumping into the file)
rehash
cat >> ~/Library/init/tcsh/aliases.mine
laundry 5
The first piece, speak_reminder, is used like speak_reminder 5 blah blah blah blahwhere the first argument is how many minutes to wait, and the remainder of the line is what to say. As others have suggested, there are other things to do with AppleScript, such as putting up a dialogue box with an 'OK' button, so in case you don't hear the speech, you would still see the box on the screen, etc.
The usage of the second piece, the 'laundry' alias, is shown --
Note that in the alias 'laundry' (in tcsh) I'm using I like this setup better than some of the ones I've seen before on here because the script is generic, but you can make as many aliases to it as you want, which could either have predefined times, messages, or both. Have fun -- I have to go put my laundry in the dryer. Thom |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|