[Remind-Fans] same formatting for numerous entries
David F. Skoll
dfs at roaringpenguin.com
Thu Oct 16 09:59:58 EDT 2014
On Thu, 16 Oct 2014 08:32:17 -0400
hymie at lactose.homelinux.net wrote:
> rem mon 15 jan scanfrom [trigger(today()-7)] satisfy 1
> rem [trigger(trigdate())] msg martin luther king b'day
> rem [trigger(trigdate())] SPECIAL SHADE 150
> omit [trigger(trigdate())]
You could simplify those lines to:
# Remember how many reminders have fired so far
SET n $NumTrig
REM Mon 15 Jan SCANFROM [trigger(today()-7)] MSG Martin Luther King b'day
OMIT [trigger(trigdate())]
REM Mon 1 Sep SCANFROM [trigger(today()-7)] MSG Labor Day
OMIT [trigger(trigdate())]
# Now check for shading. It's fine to shade *today* because
# this is only relevant for calendars.
IF $NumTrig > n
# At least one triggered!
REM SPECIAL SHADE 150
ENDIF
NOTE: You may need a recent version of Remind for the samples above to work.
Regards,
David.
More information about the Remind-fans
mailing list