• 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: last does not work with filter expression?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: last does not work with filter expression?


  • Subject: Re: last does not work with filter expression?
  • From: Christopher Nebel <email@hidden>
  • Date: Sat, 5 Feb 2005 02:22:10 -0800

On Feb 4, 2005, at 5:11 PM, Paul Berkowitz wrote:

On 2/4/05 4:40 PM, "Michael Johnston" <email@hidden> wrote:

I found the following oddity. I'm not sure whether it belongs to
OmniOutliner, Applescript, or my own faulty understanding of
Applescript*.

say I have a row with two children, row1 & row2, both with style "bob"
then I get the following results


last row of theRow
-- row2

set theList to every row of theRow where name of named style 1 of style
of it = "bob"
last item of theList
-- row2


last row of theRow where name of named style 1 of style of it = "bob"
-- row1    //WHY?

Once you've created an AppleScript list you cannot apply 'whose' filters to
it since AppleScript lists and records do not support 'whose' filters.

True but irrelevant. There are no whoses on AppleScript lists here.

This is a bug in OmniOutliner. You can tell it's just a bug and not a confusion about what the ordering is because "first row whose ..." and "last row whose ..." return the same thing. Considering that I see similar problems in TextEdit, it's probably a bug in Cocoa. Stick to the first form, since it can return "every row whose ..." coherently.


--Chris Nebel AppleScript 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: last does not work with filter expression? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: download a file with a progress bar question
  • Next by Date: Wrote the script...now I need to cancel the quicktime popup window
  • Previous by thread: Re: last does not work with filter expression?
  • Next by thread: Wrote the script...now I need to cancel the quicktime popup window
  • Index(es):
    • Date
    • Thread