Re: CalendarLib EC
Re: CalendarLib EC
- Subject: Re: CalendarLib EC
- From: "Nigel Garvey" <email@hidden>
- Date: Tue, 5 Dec 2017 18:23:09 +0000
Jean-Christophe Helary wrote on Tue, 5 Dec 2017 20:54:14 +0900:
>use script "CalendarLib EC" -- put this at the top of your scripts
>use scripting additions
>
>set d1 to current date
>set d2 to d1 + 1 * hours
>set theStore to fetch store
>set theCal to fetch calendar "test" cal type cal cloud event store
theStore
>-- change to suit
>set theEvent to create event event store theStore destination calendar
>theCal event summary "A test event" starting date d1 ending date d2
event
>location "Around here" event description "some notes" without runs all
day
>set theEvent to modify zone event theEvent time zone "Asia/Tokyo"
>store event event theEvent event store theStore
>return event identifier for event theEvent
>
>I get a weird error message that says:
>
>"The variable newEvent is not defined", and it points at the theEvent
I've
>highlighted above...
Try downloading the latest version of the library (whose modification
date appears to be six hours ago). There's a label mismatch in the
'modify zone' handler in the earlier version I had, which seems to have
been fixed in the latest version.
<https://www.macosxautomation.com/applescript/apps/Script_Libs.html#Cale
ndarLib_EC>
NG
_______________________________________________
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