[Techtalk] Remind utility

Anne Wainwright anotheranne at fables.co.za
Mon Aug 10 14:15:22 UTC 2009


Hi, Mike, hello ......

Did a search in my archives and found this.

On Mon, 10 Dec 2007 19:51:49 -0500
Mike <kenziem at sympatico.ca> wrote:
Re: [Techtalk] Age-old cron problem

> Remind

If anyone is a Remind addict ...

I was trying to adapt the Remind script (but do not see where to get
the script per se) to add in a Monday garbage reminder. See:

http://wiki.43folders.com/index.php/Remind_Cookbook

; Garbage day is every other Thursday, *but* if Monday of that week
; is a holiday (is omitted), then garbage day is moved to Friday. We use
; SCANFROM so that we can search for Mondays up to a week in the past 
; (Apr 3 is a Monday).
FSET _omitthurs(d) iif(isomitted(d), "OMIT Thu AFTER", "")
REM Apr 3 2006 *14 SCANFROM [trigger(today()-7)] SATISFY 1
REM [trigger(trigdate()+3)] [_omitthurs(trigdate())] MSG garbage day

My garbage is collected on each Monday, but if that is a public holiday
then it is collected the following Friday.

Changing the obvious does not work, it shows every Friday as if every
Monday is a holiday. Then most important I do not see how it
determines if the Monday is a public holiday. I think that must
be the point since the sample script above does not work for me either,
even with a Monday holiday (an entry anyway under ;holidays) garbage is
always shown for the following Friday.

My script  (we have dustbin collections, not garbage collections!):

; Dustbin day is every Monday, *but* if Monday of that week
; is a holiday (is omitted), then garbage day is moved to Friday. We use
; SCANFROM so that we can search for Mondays up to a week in the past 
; (Aug 10 2009 is a Monday).
FSET _omitmon(d) iif(isomitted(d), "OMIT Mon AFTER", "")
REM Aug 3 2009 *7 SCANFROM [trigger(today()-7)] SATISFY 1 
REM [trigger(trigdate()+4)] [_omitmon(trigdate())] MSG dustbin day %

Any bright ideas?
Anne


More information about the Techtalk mailing list