Re: How to speed up scripting Apple's Reminders app
Re: How to speed up scripting Apple's Reminders app
- Subject: Re: How to speed up scripting Apple's Reminders app
- From: Christian Boyce <email@hidden>
- Date: Wed, 09 Mar 2016 12:34:44 -0800
- Sendlaterdate: Wed, 9 Mar 2016 12:34:44 -0800
Stan, that's a lot of help. I had a feeling I could do something like this but kept dancing around without success.
Interesting that you can refer to the list by name without saying 'whose name is "Blog Post Checklist"'. Now what I would have expected.
Here, if I have all 20 checked, it takes about 6 seconds to uncheck them. But it's still a whole lot faster than it was when I did it "my way."
c On Mar 9, 2016, at 12:17 PM, Stan Cleveland < email@hidden> wrote:
Hi Christian,
I created a list of 20 items and ran your script, which took just over 16 seconds. I think some of the slowness is due to UI animation.
Rather than looping through the items, the following code will change them all simultaneously. Run time drops to about 2.5 seconds.
tell application "Reminders" set completed of (reminders of list "Blog Post Checklist" whose completed is true) to false
HTH, Stan C.
--
Visit my website and blog:
Christian Boyce Christian Boyce and Associates Mac, iPhone, and iPad Consultants
For appointments, please call the office: 424-354-3548. We do not make appointments by email or text.
Current weather in Santa Monica, CA: Fair, 66° F
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden