Last active
January 3, 2016 01:09
-
-
Save nateswart/8387772 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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