-
-
Save florido/18af2727479a7edd6c25e0074a62f463 to your computer and use it in GitHub Desktop.
Apple Reminders.app -- Delete Completed Reminders
This file contains 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
set the theList to {"Reminders", "Groceries"} -- Edit/Add all Reminder lists to remove completed items from | |
repeat with eachList in theList | |
tell application "Reminders" | |
-- Loop thru reminders in the targeted reminder.app list | |
tell list eachList | |
set theTasks to every reminder | |
repeat with theTask in theTasks | |
if theTask is completed then | |
delete theTask | |
end if | |
end repeat | |
end tell | |
end tell | |
end repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment