[comp.sys.mac.system] Advanced find?

blarsen@spider.uio.no (Bjorn Larsen) (06/27/91)

For some reason or other, I have taken it for granted that the
nifty new Find command in the Finder had a feature that would let
me specify compound search criteria (such as 'Find files with names
that starts with "Foobar" AND whose size is less than 20Kb').

But it seems like this isn't the case. Is this true? If so, why!?
After all, as long as all the different search criteria are in place,
if should only require a small amount of work to add compund criteria.

Any comments?

----
Bjorn.Larsen@usit.uio.no                        "Specialization is for insects"
University Centre for Information Technology                     - Lazarus Long
University of Oslo, Norway

gersh@aplpy.jhuapl.edu (John R. Gersh) (06/28/91)

In article <BLARSEN.91Jun27082246@spider.uio.no> Bjorn.Larsen@usit.uio.no 
asks

[Why the System 7 "nifty new Find command" won't do compound searches]

But it will; you just have to use it twice (or more).

Search on the first criterion (e.g., Kind includes application) with
"all at once" checked. This will result in a view-by-name window for
your top-level disk directory with all the items found selected.

Call Find... once more, immediately. This time, use your second
criterion, (e.g., Size less than 100k), keeping "all at once" checked
and choosing "the selected items" from the Search popup menu. The new
criterion will be applied to the items found on the first search,
resulting, in the example, with all the applications less than 100k
selected. 

The process can obviously be continued with additional criteria.

Of course, there are limits here: The procedure can only do simple
compound (AND) searches, not arbitrary boolean ones. Also, only one 
volume can be searched at a time using this procedure.

					
					- John Gersh



---------------------------------------------------------------------
gersh@aplpy.jhuapl.edu 	        {backbone!}mimsy!aplcen!aplcomm!gersh
The Johns Hopkins University Applied Physics Laboratory
Johns Hopkins Rd., Laurel, MD 20723		       (301) 953-5503