• 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: Shane Stanley <email@hidden>
  • Date: Tue, 30 Aug 2016 12:07:34 +1000

On 30 Aug 2016, at 11:08 AM, Jim Underwood <email@hidden> wrote:

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

But you're using it with properties in all cases. Axel's point is the clue:

In the case of Safari, "document" is the name of a class, the name of an application’s elements and the name of a window’s property (all of these items having seemingly the same underlying code 'docu')

So when you use:

tell application "Safari"
every window where document is not missing value
end tell

The compiler isn't smart enough to work out which meaning of document you intend, and the test if performs is "document ≠ missing value", where "document" is the document class. Adding the "its" gives the compiler the necessary hint to test "every window's document ≠ missing value".

So the best answer is probably that "its" is required whenever there might be ambiguity.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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: Mitchell L Model <email@hidden>
    • Re: "where its" vs "whose"
      • From: Jim Underwood <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>)

  • 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