Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.