- Copy the
deleteCompletedReminders.scpt
file to your directory (for example,xxx
). - In the
deleteCompletedReminders.plist
file change thePATH_TO_YOUR_SCRIPT
constant to the path to yourxxx
directory. - Copy the
deleteCompletedReminders.plist
file to the/Library/LaunchAgents/
directory. - Restart your computer.
- The deleting script will be executed on every login (may ask for some permissions for the first time) and every 24 hours.
Last active
December 24, 2019 14:45
-
-
Save sergdenisov/783e95a4ea2d0b106c7ee034e17aa3e4 to your computer and use it in GitHub Desktop.
An automatically deleting of all completed Apple reminders on macOS every hour
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
<key>Label</key> | |
<string>deleteCompletedReminders</string> | |
<key>Program</key> | |
<string>/usr/bin/osascript</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>osascript</string> | |
<string>PATH_TO_YOUR_SCRIPT/deleteCompletedReminders.scpt</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>StartInterval</key> | |
<integer>3600</integer> | |
</dict> | |
</plist> |
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
tell application "Reminders" to delete (reminders whose completed is true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment