Re: "where its" vs "whose"
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" e very 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