Skip to content

Instantly share code, notes, and snippets.

View peterbmarks's full-sized avatar

Peter B Marks peterbmarks

View GitHub Profile
@pwc3
pwc3 / Exchange Sync.applescript
Last active March 13, 2025 18:44
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