Applescript from iCal allarm ?

Can I make a applescript for allarm in iCal which lookup the name and position of same event to put in variable ? :confused:
Thanks!

Yes. One of the alarm settings is ā€œrun scriptā€.

Yesā€¦but I want put into a variable of script the name of event.
Itā€™sā€™ possible?
Thanks!

Hi,

this script displays alarm time, summary of the event and the parent calendarā€™s name

tell (current date) to set ct to it - (its seconds)
set theEvent to ""
tell application "iCal"
	repeat with oneCal in calendars
		repeat with oneEvent in (get events of oneCal)
			if start date of oneEvent is ct then
				set theEvent to (ct as string) & return & Ā¬
					"event: " & quote & summary of oneEvent & quote & " of calendar " & name of oneCal
				exit repeat
			end if
		end repeat
	end repeat
end tell
display dialog theEvent

Hi stefan!
Itā€™s perfect!
And for show also the note?

Thanks too much!

the property is:

description of oneEvent

Thank you.
You are a Friend!
:wink:

andā€¦
ā€¦if I want modify (edit) a description of a exist event?

tell application "iCal"
	tell event 1 of calendar "myCalendar"
		set description to text returned of (display dialog "Edit description" default answer (get description as string))
	end tell
end tell