Skip to content

Instantly share code, notes, and snippets.

@jkishner
Created June 16, 2015 20:27
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 jkishner/72ac06d7a477585ea51e to your computer and use it in GitHub Desktop.
Save jkishner/72ac06d7a477585ea51e to your computer and use it in GitHub Desktop.
import reminders
import editor
editor.insert_text('# TV Shows to Watch')
editor.insert_text('\n\n')
cals = reminders.get_all_calendars()
for calendar in cals:
if calendar.title == 'tv':
tvs = reminders.get_reminders(calendar,completed=False)
for x in tvs:
editor.insert_text('* ' + x.title)
editor.insert_text('\n')
editor.insert_text('\n')
editor.insert_text('# Movies to Watch')
editor.insert_text('\n\n')
for calendar in cals:
if calendar.title == 'movies':
movs = reminders.get_reminders(calendar,completed=False)
for x in movs:
editor.insert_text('* ' + x.title)
editor.insert_text('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment