• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
get properties of elements of a Class in Applescript - Related to ical
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: get properties of elements of a Class in Applescript - Related to ical
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: How do I append text at the end of a textedit document?
  • Next by Date: Re: How do I append text at the end of a textedit document?
  • Previous by thread: Re: How do I append text at the end of a textedit document?
  • Next by thread: Re: get properties of elements of a Class in Applescript - Related to ical
  • Index(es):
    • Date
    • Thread