Hello,

Is there a way to put this into a shorter, more flexible expression:

  FSET _back(days)      TRIGGER(TODAY()-days)
  REM  Mon Jun 1 --7 SCANFROM [_back(7)] MSG %"event%"
  REM  Mon Jun 1 --6 SCANFROM [_back(7)] MSG %"event%"
  REM  Mon Jun 1 --5 SCANFROM [_back(7)] MSG %"event%"
  REM  Mon Jun 1 --4 SCANFROM [_back(7)] MSG %"event%"
  REM  Mon Jun 1 --3 SCANFROM [_back(7)] MSG %"event%"
  REM  Mon Jun 1 --2 SCANFROM [_back(7)] MSG %"event%"
  REM  Mon Jun 1 --1 SCANFROM [_back(7)] MSG %"event%"
  REM  Mon Jun 1 SCANFROM [_back(7)] MSG %"event%"

Basically it's one week before the first monday in june every year that
I am interested in.

I first thought about using THROUGH but how do I get remind to give
notice _every_ year of such a moving date? There are no fully-specified
dates I can work with. I would have gone with variables to set the final
date but don't know how. The following for example yields no error but
no output either:

  FSET _back(days)      TRIGGER(TODAY()-days)
  FSET _last(mo)        "1 " + MON((mo%12)+1)+" --7"
  REM  Mon [_last(6)] [$Ty] THROUGH Mon Jul 1 [$Ty] SCANFROM [_back(7)] \
       MSG %"event%"

I also had a try with SATISFY and IF clauses, specifying a range of
days and using boolean expressions, but I can't get my head around it.
There must be a way but I am stuck without help.


Jens
_______________________________________________
Remind-fans mailing list
[email protected]
http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/remind-fans
Remind is at http://www.roaringpenguin.com/products/remind

Reply via email to