Skip to content

Instantly share code, notes, and snippets.

@poritsky
Created April 27, 2015 18:47
Show Gist options
  • Save poritsky/8d8aec063216ed16b9b5 to your computer and use it in GitHub Desktop.
Save poritsky/8d8aec063216ed16b9b5 to your computer and use it in GitHub Desktop.
Delete Completed Reminders in Reminders.app
tell application "Reminders"
delete (every reminder whose completed is true)
end tell
@RobTrew
Copy link

RobTrew commented May 1, 2015

Useful ...

FWIW, a code golf equivalent:

tell application "Reminders" to delete (reminders whose completed = true)

and a Yosemite JXA JavaScript equivalent:

var appR = Application("Reminders");
appR.delete(appR.reminders.whose({
    completed: true
}))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment