I blogged about it here, but if you just want the js action you can find it here: https://gist.github.com/evantravers/34367cdfb41650b60d94ce25ca721ac1
@evantravers - This is awesome. Is there a way I can figure out the data elements of the āeventā? For example in addition to the āstartDateā, ānotesā etc, it would be really useful to pull the attendeeās or those invited to the meeting.
TIA
Mike
Hi there @dmormerod!
So Iām pulling the Event Object from the standard scripting library. Any property listed on the docs page is available to you.
Attendees currently isnāt an option, although maybe we can ask @greg-pierce if thatās possible. Previously I had this as an iOS Shortcut, and the Shortcuts app has access to the invitees and attendees.
Ah, ok, Thanks. In the case yes, @greg-pierce is it possible to get at the inviteeās of a meeting?
It may be possibleā¦ I see that Scriptable has this ability in the CalendarEvent objectā¦ you could also just write it over there in Scriptable and run it there I supposeā¦ but I like keeping everything in Drafts.
Attendees/invitees are not accessible in Drafts scripting interfaces at this time. Extending those capabilities is definitely āon-the-listā. Not something that has gotten prioritized because there has not been any requests coming in, but will add your +1s to the request.
I am using a Shortcut for this.
https://www.icloud.com/shortcuts/ececb93c05ae4260aa3c2373a89425b1
The following steps:
- get 15 events from all calendars (# of events is adjustable and which calendars also)
- get start date, title, attendees, status Accepted/ Declined, notes of the calendar event (in my use case I put in the meeting subjects)
- create a text template, the meeting template, to clipboard
- create draft and past clipboard in draft note
My fully functional meeting workflow you can find here:
Section meeting
Hi @greg-pierce! Is attendee list for the Event object still on the todo list? If so, please add my vote. Thanks!
Whatās your use-case? I havenāt really looked much at adding because attendees are a read-only property, itās not possible to set those value via Apple event APIs. Are you just interested in being able to read them?
Yes, just need to read them please. I am generating meeting minutes from a template, using the script from @evantravers linked above:
https://gist.githubusercontent.com/evantravers/34367cdfb41650b60d94ce25ca721ac1/raw/3520e11be898cc2c91d76f4b5d768f6562bba985/Drafts%20Script.js
Being able to have the meeting title, notes, start and end date, attendees, etc pre-populated from the calendar event is a hugh time-saver, especially for meetings with larger number of attendees.
Thanks for the quick reply!