Skip to content

Instantly share code, notes, and snippets.

@eppfel
Last active April 13, 2016 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eppfel/c238510903363db70fd2fcc44280ffd4 to your computer and use it in GitHub Desktop.
Save eppfel/c238510903363db70fd2fcc44280ffd4 to your computer and use it in GitHub Desktop.
Example event for OSX calendar to set a custom alert time. The magic happens in the VALARM part. The TRIGGER defines the time for the alert. For AllDayEvents the start time is 00:00. So for an alter at 18:00 we set the value to -PT6H.
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;VALUE=DATE:20160413
DTEND;VALUE=DATE:20160414
DESCRIPTION:Example event to import in OSX calendar and simultaneously
setting an alert at a custom time, here 18:00 (event start -6 hours)
LOCATION:Darmstadt, Europe, Earth, Milky Way
TRANSP:TRANSPARENT
SEQUENCE:0
UID:1337@example.org
DTSTAMP:20160413T105718Z
SUMMARY:Example Event
CLASS:PUBLIC
CREATED:20160413T143000Z
LAST-MODIFIED:20160413T143000Z
URL:https://gist.github.com/dharma-guardian/c238510903363db70fd2fcc44280ffd4
BEGIN:VALARM
TRIGGER:-PT6H
ATTACH;VALUE=URI:Basso
ACTION:AUDIO
END:VALARM
END:VEVENT
END:VCALENDAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment