• 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: Is "item n whose..." valid?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is "item n whose..." valid?


  • Subject: Re: Is "item n whose..." valid?
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 3 Jun 2002 09:57:20 -0700

On Monday, June 3, 2002, at 04:31 AM, Chris Page wrote:

On Monday, June 3, 2002, at 04:16 AM, Chris Page wrote:

So

items 10 through 25 whose foo is bar

Tests for matching items, then returns items 10 through 25 of the matches.

Yes, that's the correct interpretation. Ideally, the application doesn't get every single match first and then throw away all but items 10 through 25, but that's an implementation detail.

Hmm. Well, actually this is still an open question. Is this a legal reference? The Finder returns an error:

tell application "Finder"
items 1 thru 2 whose name is not ""
end tell

Looks perfectly legal to me, and Cocoa Scripting handles such constructs just fine. Sounds like a bug in the Finder -- go ahead and file one.


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Is "item n whose..." valid? (From: Chris Page <email@hidden>)

  • Prev by Date: RE: Error -241?
  • Next by Date: Pausing a script
  • Previous by thread: Re: Is "item n whose..." valid?
  • Next by thread: Is "item n whose..." valid?
  • Index(es):
    • Date
    • Thread