Exporting Calendars with Applescript?
It strikes me that the obvious way to handle this is to simply export the calendar files to disk, and in fact this works quite well with File -> Export and putting them in a directory. However, it's somewhat tedious to have to export each calendar individually, which led me to the idea of using Applescript to export them en masse.
The problem is that I can't seem to find any way to actually export them. I've tried doing a 'save thisCalendar in exportFile' (see below), but I get an 'NSReceiversCantHandleScriptError'. Any thoughts on how to make this work properly?
Cheers,
tell application "iCal"
activate
set allCalendars to every calendar
repeat with thisCalendar in allCalendars
set exportFileName to choose file name with prompt "Choose File to Export iCal To:"
save thisCalendar in exportFileName
end repeat
end tell