• 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: Yvan KOENIG <email@hidden>
  • Date: Sat, 27 Aug 2016 17:42:00 +0200


Le 27 août 2016 à 16:52, Mitchell L Model <email@hidden> a écrit :

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

I am getting the correct result for the first "every" and an error on the second.
I believe i have always used "where its" and "whose" interchangeably.
Or maybe not — I almost always use "whose" and used "where its" as part
of a solution someone sent me for a different problem.

What's the difference and why?

According to the AppleScript User Guide they are identical but from time to time I read, here and there, some instructions which behave well with one syntax and fail with the other one.

So my understanding is that whose is quite identical to where but not completely identical.

When one fails, I try with the other. Sometimes it solves the problem, sometimes the problem is elsewhere.

I'm afraid that our dear Has will post two or three pages of comments about AppleScript discrepancies.

Yvan KOENIG running El Capitan 10.11.6 in French (VALLAURIS, France) samedi 27 août 2016 17:40:06





 _______________________________________________
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

References: 
 >"where its" vs "whose" (From: Mitchell L Model <email@hidden>)

  • Prev by Date: "where its" vs "whose"
  • Next by Date: Exiting an app with an infinite loop?
  • Previous by thread: "where its" vs "whose"
  • Next by thread: Re: "where its" vs "whose"
  • Index(es):
    • Date
    • Thread