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

Re: [ANN] CalendarLib, improved Calendar scripting


  • Subject: Re: [ANN] CalendarLib, improved Calendar scripting
  • From: Jay Louvion <email@hidden>
  • Date: Wed, 16 Dec 2015 16:42:12 +0100

I’ve been playing with it for a week now and wouldn’t go back.

Let’s put it simply. If you plan on scripting the calendar and are running anything over 10.9, this is the only (real) option.
Vanilla AS: create an event in a 8000+ event calendar - 70 seconds. CalendarLib, 3. Math done.

I’m not a big fan of having to depend on third party installs, but this is simply superb.

Thanks Shane.

J.





Jay Louvion | Les Studios Casagrande Sàrl
3, rue Müller-Brun
1208 Geneva
T+4122 840 32 72 
F+4122 840 32 71 
BLOG | Facebook | www.studiocasagrande.com

On 14 Dec 2015, at 23:35, Shane Stanley <email@hidden> wrote:

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: Shane Stanley <email@hidden>
    • Re: [ANN] CalendarLib, improved Calendar scripting
      • From: Christopher Stone <email@hidden>
References: 
 >[ANN] CalendarLib, improved Calendar scripting (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: AS Library Question
  • Next by Date: Re: AS Library Question
  • Previous by thread: [ANN] CalendarLib, improved Calendar scripting
  • Next by thread: Re: [ANN] CalendarLib, improved Calendar scripting
  • Index(es):
    • Date
    • Thread