Skip to content

Instantly share code, notes, and snippets.

@nateswart
Last active January 3, 2016 01:09
Show Gist options
  • Save nateswart/8387772 to your computer and use it in GitHub Desktop.
Save nateswart/8387772 to your computer and use it in GitHub Desktop.
#!/usr/bin/osascript
on run
tell application "Reminders"
set theList to "Automation"
repeat with i from 1 to (count of every reminder of list theList)
set theReminder to reminder i of list theList
set reminderName to the name of theReminder
set reminderId to the id of theReminder
if theReminder is not completed then
tell application "Finder" to get folder of (path to me) as Unicode text
set workingDir to POSIX path of result
set theScript to workingDir & reminderName & ".scpt"
run script theScript
delete (every reminder whose id is reminderId)
end if
end repeat
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment