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?
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?