Skip to content

Instantly share code, notes, and snippets.

@AaronJackson
Last active December 14, 2015 08:59
Show Gist options
  • Save AaronJackson/5061397 to your computer and use it in GitHub Desktop.
Save AaronJackson/5061397 to your computer and use it in GitHub Desktop.
Updating many events in iCal
set theEvents to {}
tell application "Calendar"
tell calendar "Calendar"
set theEvents to every event whose summary contains "IDM-" or summary contains "ICP-"
repeat with theEvent in theEvents
tell theEvent
set location to "Dean Street, Bangor, Gwynedd, UK"
end tell
end repeat
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment