Last active
March 13, 2025 18:44
-
-
Save pwc3/5342337 to your computer and use it in GitHub Desktop.
AppleScript to copy all of the events from an Exchange calendar to an iCloud calendar.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Calendar" | |
-- delete everything from the destination calendar | |
-- TODO: Change "Destination Calendar" to be the name of your destination calendar | |
repeat with anEvent in (get events of calendar "Destination Calendar") | |
delete anEvent | |
end repeat | |
-- copy all events from the source calendar to the destination | |
-- TODO: Change "Source Calendar" to be the name of your source calendar | |
-- TODO: Change "Destination Calendar" to be the name of your destination calendar | |
repeat with anEvent in (get events of calendar "Source Calendar") | |
copy anEvent to the end of events of calendar "Destination Calendar" | |
end repeat | |
end tell |
it works with BigSur on mbp M1. thank you
... the problem is that it misses recurring events whose first event does not happen inside the selected time window
sadly non of this works for me (Big Sur, MBP M1)
Hi, I needed this feature, so I created an updated version for anyone interested (compatible with the current macOS version): https://gist.github.com/MyKEms/3287c65f097a29b1756f3799842165bb
This script handles recurring events.
It was written to copy events on an ongoing basis, skip duplication, and get recurring events.
https://gist.github.com/scottwils/256b5658a094a295b88585c1215c12f4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I played some hour with the topic at it has some infuriating problems.
I hope you can use the code below, but it is far to be perfect. I also planned to have a script which list the calendars and their uids to make the code target really the one you need, but the missing handler made it impossible.