Skip to content

Instantly share code, notes, and snippets.

@pwc3
Last active February 1, 2024 12:34
Show Gist options
  • Save pwc3/5342337 to your computer and use it in GitHub Desktop.
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.
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
@MyKEms
Copy link

MyKEms commented Feb 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment