Re: TableSearchServices
Re: TableSearchServices
- Subject: Re: TableSearchServices
- From: Victor Yee <email@hidden>
- Date: Tue, 17 Jul 2001 16:16:40 -0400
On Tue, 17 Jul 2001 10:49:26 -0400, Arthur J Knapp wrote,
>
> tell TableSearchServices
>
>
>
> _startSearch(addressbookFields, addressbookEntries)
>
>
>
> _findEntriesWhose("lastName", "contains", "smith")
>
>
>
> _andWhose("firstName", "=", "john")
>
>
>
> set x to the contents of _searchResults()
>
>
>
> _endSearch()
>
>
>
It's so darn AppleScript-like. :)
:) I defined the interface first and then worked out the routines to implement it.
I'm discovering that finding good handler names eases the grunt work of coding, but that in itself is a difficult task. Trying to find a decent balance between meaning and character length has me constantly reaching for a dictionary or thesauraus. I should've paid more attention in my high school English classes (ahh... aren't regrets the first signs of aging? ;)
>
When I have some chunk of clear time available, I would like
>
to try and work with this project, to test and extend it. I
>
can't wait. :)
[!!!]
tell TableSearchServices
_findSaladsWhose("dressing", "contains", "towels")
_searchResults()
--> {"Saturn"}
;)
Victor
p.s. Arghh! Just noticed that some of the documentation has to be fixed...