Re: iCal and getting event name
Re: iCal and getting event name
- Subject: Re: iCal and getting event name
- From: pete boardman <email@hidden>
- Date: Sat, 23 Jul 2005 12:37:35 +0100
On 23 Jul 2005, at 06:21, Patrick Zittle wrote:
Hello all,
I would like to get the name of an event and set it as a
variable in a script I am creating, how can I do this. I will
probably have this script run as an alarm so if that helps.
You could use the uid of the event, perhaps:
set aUid to ""
tell application "iCal"
tell calendar 1
set r to every event whose summary contains "holiday"
if (count r) > 0 then
tell item 1 of r
set aUid to uid
end tell
end if
end tell
end tell
tell application "iCal"
tell calendar 1
set r to first event whose uid is aUid
get r's summary
end tell
end tell
I don't know if the UID of the event is unique in a single calendar
or unique across all calendars...
Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden