• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to speed up scripting Apple's Reminders app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
end tell

HTH,
Stan C.


--
Visit my website and blog:
www.christianboyce.com

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.

New on my blog: What You Need to Know About Mac Ransomware

Join my mailing list and never miss a post!

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

References: 
 >How to speed up scripting Apple's Reminders app (From: Christian Boyce <email@hidden>)

  • Prev by Date: How to speed up scripting Apple's Reminders app
  • Next by Date: Re: How to speed up scripting Apple's Reminders app
  • Previous by thread: How to speed up scripting Apple's Reminders app
  • Next by thread: Re: How to speed up scripting Apple's Reminders app
  • Index(es):
    • Date
    • Thread