I wanted to write a script to "push" reminders back by an hour. I came up with this:
tell application "Reminders" launch set c to current date set newtime to c + 3600 set the remind me date of every reminder where completed is false and remind me date < c to newtime end tell
The script isn't very fast when run from Script Editor (takes a few seconds) but when run from the script menu, it can literally take tens of minutes.
Any insight into why it's so slow?
Looking into this led me to the sqlite database that contains reminders information.
~/Library/Application\ Support/NotificationCenter/(meaningless name).db
It appears to accumulate every reminder ever added... even things like what song played at 4:31pm on January 22, 2015. If Applescript has to iterate though all the entries to find those that match the parameters, it might explain why it's so slow - but it doesn't explain why it's SO MUCH SLOWER when run from the script menu.
I'm wondering if the easiest way to push reminders might not be to manipulate the sqlite database. Thoughts?