Re: Add event to Calendar
Re: Add event to Calendar
- Subject: Re: Add event to Calendar
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 28 Sep 2014 11:12:20 -0700
- Thread-topic: Add event to Calendar
Title: Re: Add event to Calendar
Check the dictionary. If you look under the 'event' class, you'll see that it has a property 'uid', defined, somewhat incorrectly, as " An unique todo key." (Evidently copied from the 'todo' entry: it should read "A unique event key".) So try that:
vEventInfo's uid
after you've made the event.
--
Paul Berkowitz
From: Bill Vlahos <email@hidden>
Date: Sat, 27 Sep 2014 19:32:40 -0700
To: AppleScript-Users <email@hidden>
Subject: Re: Add event to Calendar
Now that I can add an event to a Calendar, how do I get the event ID?
"the result" gives something like this which I’m having trouble parsing: event id "C39A9585-A867-4E88-9C38-8B891537DBB2" of calendar id "68F373D9-78C8-42FA-8988-D7E50F0CD73A" of application “Calendar"
“it" gives the the calendar id not the event id?
How do I get the event id so I can store it?
Thanks,
Bill Vlahos
On Sep 14, 2014, at 7:49 AM, Bill Vlahos <email@hidden> wrote:
Here is the complete AppleScript that will not only create the event but also bring up the Info pane to let the user add invitees, etc. I have to show the event so it is highlighted so the keystroke command has the event to work with.
set calendarName to "Work"
set theSummary to "Title of the event goes here"
set theDescrption to "Description of event goes here."
set theLocation to ""
set startDate to "September 15, 2014 9:30:00 AM"
set endDate to "September 15, 2014 1:00:00 PM"
set startDate to date startDate
set endDate to date endDate
tell application "Calendar" to activate
tell application "Calendar"
tell (first calendar whose name is calendarName)
make new event at end of events with properties {summary:theSummary, start date:startDate, end date:endDate, description:theDescrption, location:theLocation}
copy the result to vEventInfo
end tell
show vEventInfo
end tell
tell application "System Events"
keystroke "i" using command down
end tell
Bill Vlahos
_______________________________________________
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
_______________________________________________
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