Matthias, there is a bunch of scripts around to convert remind output to iCal and other formats, see on remind's homepage.
Once a while ago I wrote a Perl script for my personal use. The intention was to parse directly the reminder file, no involvement of remind itself. I use it exactly for the same purpose you are describing, sending .ics attachments via mail for certain dates. Check it out here: https://github.com/smartmic/remmy I am not a professional Perl programmer, please apologize for missing code commenting and quick and dirty setup. You definitely should check the more mature remind 'add-on' scripts. -Martin On Wed, Jan 14, 2015 at 04:11:57PM +0100, Matthias Beyer wrote: > Hi, > > I'm trying to write a script which helps me exporting a particular > appointment/date from remind to iCal, so this file can be attached to > an email, for example. > > Unfortunately, I fail hard on the "export one particular date" part. > > My idea is to provide a `dialog` box to the user, where all dates are > listed (maybe for the next month or so, with the ability to expand the > list) where she/he may select one entry, which then gets exported to a > file. > > Can you help me for the following two steps: > > 1) How to get a list of dates for the next n weeks in format > > <date> <description> > > ? I know about `remind -s1`, for example, but the middle part > ("* * * *" or similar) is hard to parse out for me) > > 2) Now I have a date and a description. How to export this particular > date to iCal? > > -- > Mit freundlichen Grüßen, > Kind regards, > Matthias Beyer > > Proudly sent with mutt. > Happily signed with gnupg. > _______________________________________________ > 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 _______________________________________________ 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
