Export Grindstone 3 data to an iCalendar file

1

Is there any way to export Grindstone 3 data to an iCalendar file?

For Grindstone 2 I was using the Perl script:

#!/usr/bin/perl

$xmlfile = @ARGV[0];
if ( ! $xmlfile ) { print "Usage: $0 grindstone_export.xml\n" ; exit 0 }

$icsfile = $xmlfile;
$icsfile =~ s/\.xml$/.ics/g;

open (ICSFILE,">$icsfile");
print "Writing to $icsfile\n";
print ICSFILE "BEGIN:VCALENDAR\n\n";
open (XMLFILE,$xmlfile);
while (<XMLFILE>) {
        $line = $_;
        if (/<task name/){
                @fields = split('"',$line);
                $summary = @fields[1];
        }
        if (/<time end/){
                @fields = split('"',$line);
                $end = @fields[1];
                $start = @fields[9];

                $start =~ s/-|://g;
                $end =~ s/-|://g;

                # print "$start\t$end\t$summary\n";
                print ICSFILE "BEGIN:VEVENT\n";
                print ICSFILE "DTSTART:$start\n";
                print ICSFILE "DTEND:$end\n";
                print ICSFILE "DTSTAMP:$start\n";
                # print ICSFILE "UID:\n";
                print ICSFILE "CREATED:$start\n";
                # print ICSFILE "DESCRIPTION:\n";
                print ICSFILE "LAST-MODIFIED:$end\n";
                # print ICSFILE "LOCATION:\n";
                # print ICSFILE "SEQUENCE:0\n";
                print ICSFILE "STATUS:CONFIRMED\n";
                print ICSFILE "SUMMARY:$summary\n";
                # print ICSFILE "TRANSP:OPAQUE\n";
                print ICSFILE "END:VEVENT\n\n";
        }
}
close (XMLFILE);
print ICSFILE "END:VCALENDAR\n";
close (ICSFILE);

but it only works with Grindstone 2's XML files.

I use Grindstone 3 with Windows 7 SP1 x64 Ultimate.

Franck Dernoncourt

Posted 2014-11-02T00:19:24.647

Reputation: 13 518

Can you provide any information about the format that Grindstone 3 uses to store data? – ebpa – 2015-12-29T04:07:51.973

Answers

0

There is no prebuilt way to export Grindstone 3 data to an iCalendar file.

Franck Dernoncourt

Posted 2014-11-02T00:19:24.647

Reputation: 13 518