Re: CalendarLib EC
Re: CalendarLib EC
- Subject: Re: CalendarLib EC
- From: Jean-Christophe Helary <email@hidden>
- Date: Tue, 5 Dec 2017 15:13:04 +0900
> On Dec 5, 2017, at 11:55, Shane Stanley <email@hidden> wrote:
>
>> The dictionary says "use 'update event'" but I am not seeing any 'update
>> event' command. Am I missing something ?
>
> It should say to use the "store event" command.
>> Also, the dictionary mentions a "CalendarLib ES suite" when the name of the
>> library is "CalendarLib EC". Is that a mistake?
>
> Yes.
Thank you Shane.
I was asking because I'm trying to find the correct syntax to modify the time
zone of an event (there is a question about that on Stackoverflow) and I
suggested your library, but I can't seem to get the code right based on your
examples...
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 "Japan Standard Time"
store event event theEvent event store theStore
return event identifier for event theEvent
This only creates an event with a Floating time zone. So I probably got
something wrong...
Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com
_______________________________________________
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