Skip to content

Instantly share code, notes, and snippets.

@pwc3
Last active March 13, 2025 18:44
Show Gist options
  • Select an option

  • Save pwc3/5342337 to your computer and use it in GitHub Desktop.

Select an option

Save pwc3/5342337 to your computer and use it in GitHub Desktop.

Revisions

  1. pwc3 renamed this gist Apr 9, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. pwc3 created this gist Apr 9, 2013.
    14 changes: 14 additions & 0 deletions gistfile1.applescript
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    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