• 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 03:52:19 +0000
  • Thread-topic: "where its" vs "whose"

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()
See Filtering Arrays in the OS X 10.10 Release Notes by Apple.

Best Regards,

 

Jim Underwood

aka JMichaelTX


From: <applescript-users-bounces+jmichael=email@hidden> on behalf of Shane Stanley <email@hidden>
Date: Mon, Aug 29, 2016 at 9:46 PM
To: "ASUL (AppleScript)" <email@hidden>
Subject: Re: "where its" vs "whose"

So I personally think doing it all the time is unnecessary typing.
 _______________________________________________
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>)
 >Re: "where its" vs "whose" (From: Jim Underwood <email@hidden>)
 >Re: "where its" vs "whose" (From: Shane Stanley <email@hidden>)
 >Re: "where its" vs "whose" (From: Jim Underwood <email@hidden>)
 >Re: "where its" vs "whose" (From: Shane Stanley <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