• 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
Re: Getting info back from iCal: missing values ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting info back from iCal: missing values ?


  • Subject: Re: Getting info back from iCal: missing values ?
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 23 Sep 2005 15:13:36 -0700

On Sep 21, 2005, at 12:55 AM, pete boardman wrote:

On 20 Sep 2005, at 15:59, Paul Berkowitz wrote:

On 9/20/05 2:22 AM, "Jay Louvion" <email@hidden> wrote:

set TodaysEvents to get (every event of every calendar whose start date is today)

As written, that's looking first for calendars whose start date is 'today'. Calendars don't have start dates, so that's going to error.



I'm a bit puzzled by this sentence in your otherwise excellent (as usual) post. I thought AppleScript was usually clever enough to combine the chain of references (?) correctly but still apply the 'whose' to the right object, so:


set t to get every event of every calendar whose start date > (current date)

looks at events rather than calendars. (It's certainly true that it returns missing value for any calendar that doesn't contain an event matching the test.) Has this behaviour changed - it seems to work OK for me?

No, it hasn't changed; Paul was mistaken. In the absence of any parentheses to the contrary, the "whose" applies to the beginning of the specifier, not the end.



--Chris Nebel AppleScript and Automator Engineering

_______________________________________________
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


References: 
 >Re: Getting info back from iCal: missing values ? (From: Paul Berkowitz <email@hidden>)
 >Re: Getting info back from iCal: missing values ? (From: pete boardman <email@hidden>)

  • Prev by Date: Re: number
  • Next by Date: Re: Drilling down into an AppleScript object reference
  • Previous by thread: Re: Getting info back from iCal: missing values ?
  • Next by thread: Re. Search for a character
  • Index(es):
    • Date
    • Thread