Re: When can you use the 'whose' clause (Filter)
Re: When can you use the 'whose' clause (Filter)
- Subject: Re: When can you use the 'whose' clause (Filter)
- From: "Nigel Garvey" <email@hidden>
- Date: Fri, 11 Apr 2008 17:25:44 +0100
Jerry Krinock wrote on Thu, 10 Apr 2008 12:02:16 -0700:
>In the documentation [1], I read that
>
>"Filter...Specifies all objects in a container that match a condition,
>or test, specified by a Boolean expression. The 'filter' form
>specifies application objects only. It cannot be used to filter the
>AppleScript objects list, record, or text. A term that uses the
>filter form is also known as a 'whose' clause."
To hijack the topic a little: a long-standing synonym for 'whose' is
'where', which also makes English sense in these alternative syntaxes
when filtering for booleans:
tell application "System Events"
first application process whose frontmost is true
-- Or:
first application process where frontmost is true
-- Or:
first application process where its frontmost is true
-- Or:
first application process where it is frontmost
end
The new ASLG notes that 'that' is another possible synonym and a quick
test shows that this has been possible since at least OS 9.2.2. Can
anyone think of a filter situation where 'that' makes any sense at all in
English?
NG
_______________________________________________
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