Filter reference form question
Filter reference form question
- Subject: Filter reference form question
- From: Brennan <email@hidden>
- Date: Wed, 17 Dec 2003 16:42:19 +0100
I dig the filter reference form, but there's something I'd like to get
clear.
In the filter, the 'left hand side' of each boolean clause has the scope
of the object being filtered, for example (imaginary terminology)
every foo whose width is 10
... in this case we assume that 'color' is a property of our foo class, so
'width' is evaluated in the scope of each foo object.
OK, all well and good, but what I would dearly love is to also have the
right hand side of the test to operate in the same scope:
every foo whose width is less than its length
This kind of filter fails - apparently, the thing we are comparing it with
occurs in a different scope, so even if our foo class has a 'length'
property, a 'can't get' error occurs. Apparently 'it' refers to the tell
target of the containing object, rather than the one being filtered.
I'm afraid this is impossible... unless someone can enlighten me.
Any takers?
To Mr Nebel - I know you have said that being able to apply the filter
reference form to lists is on some kind of to-do list at Apple. Well, this
functionality would actually be almost as useful.
Brennan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.