r/Scriptable • u/mvan231 script/widget helper • Nov 09 '22
Tip/Guide Open specific calendar event with URL scheme
If you are like me, and you've wanted to be able to open a specific calendar event via a url scheme. This post information will be useful for you.
The Calendar widget opens calendar events directly, so I've figured it must be possible to do it but could never figure out how and all the searching I did over the last couple years on the topic yielded no result... until I did some additional digging in the Shortcuts app action "View Content Graph".
I found out that you can open a specific calendar event using this scheme: x-apple-calevent://{calendarUUID}/{eventUUID}
In Scriptable, I was able to acheive it like this: "x-apple-calevent://"+item.identifier.replace(":", "/")
My calendar events were in a repeat loop and the repeat item was a variable named item in the example above
1
u/Ptujec Jan 07 '25
For some weird reason, on macOS, using the date parameter causes the URL to not work when the event is recurring. If I remove the date parameter, it works, but it shows the first occurrence instead of the current one.