In an attempt to write output of an EKEvent to a text file,
write theText to theOpenedFile starting at eof as list
the following text, as seen in source mode in Script Debugger:
{event_external_ID:“4p6vs356306uin8g1sd47eh8pi@google.com”, event_location:“San Jose, CA”, event_end_date:date “Friday, June 8, 2018 at 12:00:00 AM”, event_start_date:date “Monday, June 4, 2018 at 12:00:00 AM”, event_time_zone:missing value, event_status:“confirmed”, event_description:"A … }
and, as seen in AEPrint mode in Script Debugger:
{ ‘usrf’:[ ‘utxt’(“event_external_ID”), ‘utxt’(“4p6vs356306uin8g1sd47eh8pi@google.com”), ‘utxt’(“event_location”), ‘utxt’(“San Jose, CA”), ‘utxt’(“event_end_date”), 'ldt '($80773FD700000000$), ‘utxt’(“event_start_date”), 'ldt '($80313AD700000000$), ‘utxt’(“event_time_zone”), ‘msng’, ‘utxt’(“event_status”), ‘utxt’(“confirmed”), ‘utxt’(“event_description”), ‘utxt’("A …}
ended up as the following text in the text file:
◊0˚yutxt&event_original_datetypemsngutxtevent_attendeeslistutxt$event_is_recurringfalsutxtevent_summaryutxtTest eventutxtcalendar_nameutxtPersonal Webrecousrflist"utxt"event_external_IDutxtJ4p6vs356306uin8g1sd47eh8pi@google.comutxtevent_locationutxtSan Jose, CAutxtevent_end_dateldt ◊?wÄutxt event_start_dateldt ◊:1Äutxtevent_time_zonetypemsngutxtevent_statusutxtconfirmedutxt"event_descriptionutxtÍA …
Using Standard Additions’ write command I used list as the type class, as both text and data type classes failed with the write command.
- How do I write data to a file, so as to output the event data in a readable format?
- If this is not possible, can I save EventKit’s events as an ics, ie in a more standard manner for importing events?
My overall goal is to import the EKEvent event data into Filemaker Pro.