• 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: "where its" vs "whose"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "where its" vs "whose"


  • Subject: Re: "where its" vs "whose"
  • From: Jim Underwood <email@hidden>
  • Date: Tue, 30 Aug 2016 01:08:43 +0000
  • Thread-topic: "where its" vs "whose"

I'll give a shot at answering my own question:  Not always.

I can't find any documentation to support this, but by trial and error and inspection, here is what I have observed:

"whose its" is required when the filter target is an element of the main target.
For example, "document" is an element of a window, but "name" is a property of a window.

So, to filter on a property of an element of the main target, I have to use "whose is":

set winWhoseIts to every window whose its document is not missing value



Whereas if I want to filter on a property of the main target, a "whose" will work fine:

set winWhose to every window whose name is not missing value



But this also works fine: using "whose its" with a property:


set winWhose to every window whose its name is not missing value



So, the guideline to myself is:
  • Use "whose" with properties
  • Use "whose its" with elements
Can anyone verify or refute?

Best Regards,

Jim Underwood
aka JMichaelTX


From: JMichael <email@hidden>
Date: Mon, Aug 29, 2016 at 5:58 PM
To: "ASUL (AppleScript)" <email@hidden>
Subject: Re: "where its" vs "whose"

So, doesn't that mean that "whose <property>" and "whose its <property>" and "whose <property> of it" are all equivalent?
 _______________________________________________
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: "where its" vs "whose"
      • From: Shane Stanley <email@hidden>
References: 
 >"where its" vs "whose" (From: Mitchell L Model <email@hidden>)
 >Re: "where its" vs "whose" (From: Axel Luttgens <email@hidden>)
 >Re: "where its" vs "whose" (From: Deivy Petrescu <email@hidden>)
 >Re: "where its" vs "whose" (From: Jim Underwood <email@hidden>)

  • Prev by Date: Re: "where its" vs "whose"
  • Next by Date: Re: "where its" vs "whose"
  • Previous by thread: Re: "where its" vs "whose"
  • Next by thread: Re: "where its" vs "whose"
  • Index(es):
    • Date
    • Thread