• 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
iCal questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iCal questions


  • Subject: iCal questions
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 13 Jan 2009 13:46:34 -0700

1.  This works:

tell application "iCal"
summary of (events of calendar "home" whose summary is not "Change fetch interval")
end tell

Why doesn't this work:

tell application "iCal"
set theEvents to (events of calendar "home" whose summary is not "Change fetch interval")
summary of theEvents
end tell


2.  How do I get a list of list pairs of summary and dates?

In other words, what I want is {{summary of event 1, start date of event 1}, {summary of event 2, start date of event 2}}

tell application "iCal"
{summary, start date} of (events of calendar "home" whose summary is not "Change fetch interval")
end tell

The result is {{summary of event 1, summary of event 2}, {start date of event 1, start date of event 2}}

I can loop through those lists and build the lists I want, but is there any way to get it directly?

-- Michelle

-- 
"I'll see that when I believe it"

 _______________________________________________
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

  • Prev by Date: Re: Numbers '08 (Selection range)
  • Next by Date: Re: Script works in Script Editor but crashed when run stand alone
  • Previous by thread: Re: Building records from references
  • Next by thread: Problems creating POP accounts, SMTP servers, and signatures in Mail.app
  • Index(es):
    • Date
    • Thread