• 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
[ANN] CalendarLib, improved Calendar scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ANN] CalendarLib, improved Calendar scripting


  • Subject: [ANN] CalendarLib, improved Calendar scripting
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 15 Dec 2015 09:35:33 +1100

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.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

  • Follow-Ups:
    • Re: [ANN] CalendarLib, improved Calendar scripting
      • From: Jay Louvion <email@hidden>
  • Prev by Date: Re: AS Library Question
  • Next by Date: Re: AS Library Question
  • Previous by thread: Re: How to Run a "sudo" Terminal Command
  • Next by thread: Re: [ANN] CalendarLib, improved Calendar scripting
  • Index(es):
    • Date
    • Thread