CalendarLib, a scripting library for calendar event scripting without Calendar.app, is now available here:
<http://www.macosxautomation.com/applescript/apps/CalendarLib.html>
The advantages of using CalendarLib rather than Calendar.app are:
* You don't need to have Calendar.app running.
* It's much faster. Hugely so, especially if you have a busy schedule.
* When you ask for events that fall between two dates, unlike Calendar.app it includes recurring events.
* If you want to change how it works, you can edit it to suit.
The disadvantages are:
* You need to instal two libraries, either in a central Script Libraries folder or within the bundle of applets.
* It doesn't support all the features of Calendar.app.
Here's a sample of how to use it:
use script "CalendarLib" -- put this at the top of your scripts
use scripting additions
-- fetch properties of events for next week
set d1 to current date
set d2 to d1 + 7 * days
set theStore to fetch store
set theCal to fetch calendar "Home" cal type cal cloud event store theStore -- change to suit
set theEvents to fetch events starting date d1 ending date d2 searching cals {theCal} event store theStore
repeat with anEvent in theEvents
log (event info for event anEvent)
log (event identifier for event anEvent)
log (event attendees for event anEvent)
log (event recurrence for event anEvent)
end repeat
See the Web page and docs for details.
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