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 |