Não existe uma maneira pré-configurada de exportar dados do Grindstone 3 para um arquivo do iCalendar.
Existe alguma maneira de exportar os dados do Grindstone 3 para um arquivo iCalendar ?
Para o Grindstone 2, eu estava usando o script do Perl:
#!/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);
mas só funciona com arquivos XML do Grindstone 2.
Eu uso o Grindstone 3 com o Windows 7 SP1 x64 Ultimate.
Tags windows-7 grindstone