Actually, this IS completely possible using FileMaker and not very complicated!
After exporting a calendar from iCal and dragging the file onto the FileMaker icon, the events will import as thousands of individual records. From here it simply becomes an exercise in parsing the data from multiple records into individual event records using a FileMaker script
In a nutshell, your script should:
- Start at the first record
- Capture desired data from raw ICS data records into variables for temporary storage between the start and end of each event (between BEGIN:VEVENT and END:VEVENT) while deleting records with data that you don't need
- Once you reach the end of your event, create a new record in a separate table and set the event title, event date, start and end times (which can be used to calculate the total hours), and any other fields you need from the temporary variables.
- Clear the variables
- Return to the original table and loop through this same process until you reach (and delete) the last record in the raw ICS import
I exported one of my calendars and, when imported into FileMaker there were over 47,000 records. I ran one parsing routine that took just a minute or two.
To properly pull your data so that you could report to the tax office would take a few hours (2-3?) to program and test so you could get the raw data. To format it for reporting to the tax office would take a bit longer.
Unfortunately, this FileMaker development my business and cannot do this for for free, though I hope to have helped you along at least a bit. Contact me separately if you'd like to discuss this more offline. You contact me via the surefootdata website.
All the best,
Jim