• 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
Is iCal slower?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is iCal slower?


  • Subject: Is iCal slower?
  • From: Max Bonilla <email@hidden>
  • Date: Sun, 27 Jan 2008 22:12:20 -0500
  • Thread-topic: Is iCal slower?

Title: Is iCal slower?
Hello everyone,

In a script I had under Tiger, I used to use the following iCal command, which would be quickly returned.  In Leopard, this same command takes much longer to execute:

   
set InnerRange to (current date)
   set OuterRange to (date (date string of (current date))) + (TimeString * days)
   set myEvents to {}
tell
application "iCal"
       
        
set myEvents to myEvents & (every event of calendar CalendarV whose start date ≥ InnerRange and start date ≤ OuterRange)

    
end tell

I just ran the command, with the date of
OuterRange being only a few days later ( TimeString = 3).  To return 9 events, the script took 28.7 seconds.  I wonder whether there is a faster way to execute the command.  (As an aside, under Tiger one could not retrieve repeating events with the above command. Did that change in Leopard? If so, might that be the reason for the delayed response?)

TIA

Max
 _______________________________________________
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

  • Prev by Date: Re: changing part of a string
  • Next by Date: Re: Textedit and word counting
  • Previous by thread: Re: changing part of a string
  • Next by thread: Getting array of Item names and Positions
  • Index(es):
    • Date
    • Thread