Well, when I start worrying about typing 3 characters, I'll give that some consideration. LOL
I had much rather have a consistent syntax that I can always use, even at the expense of a few characters.
It all comes down to muscle memory, anyway.
So, for me, it sounds like "where its" is a logical, sounds good, always works, syntax.
I typed this from scratch, and it came very naturally and very fast:
tell
application "Safari"
set
winList to
every
window where
its
document is
not
missing value
end
tell
It was also very natural and fast to type this, but it yielded different results:
set
winList to
every window
where its
name
is not missing value
This is required to get the same results:
set
winList to
every window
where its
name
is not missing value
and name ≠
""
--- OR, in a more simple statement ---
set winList
to every
window where
its name ≠
""
BTW, I also like "where" rather than "whose" because that is the SQL clause term.
I find it very humorous that grammar is getting in the way of a language that proclaims that it is easier to use because it is more English language like. Total BS.
AFAIK, the JXA equivalent is simply .whose()
Best Regards,
Jim Underwood
aka
JMichaelTX