get properties of elements of a Class in Applescript - Related to ical
get properties of elements of a Class in Applescript - Related to ical
- Subject: get properties of elements of a Class in Applescript - Related to ical
- From: "mac script" <email@hidden>
- Date: Thu, 10 May 2007 12:34:21 -0700
Hi Scripters
I am trying to get the properties of the element sound alarm of an event in iCal using a code similar to:
tell application "iCal"
set theEvent to event 1 of calendar "Work"
set theAlarm to sound alarm of theEvent
set theInterval to trigger interval of theAlarm
(*Applescript Error
Can't get trigger interval of {sound alarm 1 of event 1 of calendar 2 of application "iCal"}*)
end tell
But every time I do this I get an error saying 'Can't get trigger interval of {sound alarm 1 of event 1 of calendar 2 of application "iCal"'.
What should I do to get the properties of the elements of iCal in Applescript?
Thank you
DG
_______________________________________________
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