[Remind-Fans] Fwd: My Remind scheduling script and thoughts on growlnotify
Brian P. Flaherty
bxf4 at u.washington.edu
Sun Oct 18 20:22:51 EDT 2009
Manu Kaul wrote:
> Hi,
> Was trying to figure out which command would work and following the man
> page I realised that the 43 folders wiki page had the wrong argument as
> -k' ...
> when it should have been '-kcmd' according to the man page. So the below
> works for me.
>
> /usr/local/bin/remind *'-k/usr/local/bin/growlnotify -n remind -a iCal
> -t Reminder -s -m %s &*' -a /Users/manukaul/.reminders &
I send appointment notifications to growlnotify running remind in daemon
mode like this:
remind '-kgrowlnotify -m %s' -z2 .reminders &
I had a launchd job/script(?) and one-line shel script that sends my
day's list of reminders to growlnotify. I assume you could adapt it to
add the flags you want.
launchd XML thing:
camus:LaunchAgents$ more bxf4.alert.daysrem.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>Debug</key>
<true/>
<key>Label</key>
<string>bxf4.alert.daysrem</string>
<key>Program</key>
<string>/Users/bxf4/bin/daysrem.sh</string>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>7</integer>
<key>Minute</key>
<integer>5</integer>
</dict>
</dict>
</plist>
This runs it at 7:05am
The shell script is:
camus:LaunchAgents bxf4$ cat /Users/bxf4/bin/daysrem.sh
#!/bin/bash
/opt/local/bin/remind /Users/bxf4/.reminders | /usr/local/bin/growlnotify
I did it with a shell script because I couldn't get the pipe to work in
the launchd XML.
Maybe this will help?
Brian
>
> This command is run every 300 seconds ( 5 mins ) and it gives me
> reminders. To test it I had in the file :
>
> REM Sep 30 2009 AT 14:45 MSG %a : %2 --- Testing 1!
> REM Sep 30 2009 AT 14:50 MSG %a : %2 --- Testing 2!
> REM Sep 30 2009 AT 14:55 MSG %a : %2 --- Testing 3!
> REM Sep 30 2009 AT 15:05 MSG %a : %2 --- Testing 4!
>
> The only problem I am facing is that I keep getting MULTIPLE growl
> notifications for each event that it queues. It looks like its queuing
> up each event that is supposed to happen in the future every time I
> refresh reminder and then when the date/time combination is triggered it
> shows me all the queued up growl notifications so I end up with a huge
> list of sticky growl notifications. Can someone suggest how to get only
> ONE to appear using the command above?
>
> Cheers,
> Manu
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Remind-fans mailing list
> Remind-fans at lists.whatexit.org
> http://lists.whatexit.org/mailman/listinfo/remind-fans
--
Brian P. Flaherty, PhD office: (206) 616-0402
Assistant Professor fax: (206) 685-3157
Department of Psychology bxf4 at u.washington.edu
University of Washington http://tinyurl.com/ppu63
Box 351525
Seattle, WA 98195-1525
More information about the Remind-fans
mailing list