Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!uokmax!munnari.oz.au!uniwa!fennel.cc.uwa.oz.au!a_dent From: a_dent@fennel.cc.uwa.oz.au Newsgroups: comp.sys.mac.hypercard Subject: Re: Searching for (and finding) HFS filenames by keyword... Message-ID: <1990Nov16.024502.2603@fennel.cc.uwa.oz.au> Date: 15 Nov 90 18:45:02 GMT References: <3846@idunno.Princeton.EDU> Organization: University of Western Australia Lines: 39 In article <3846@idunno.Princeton.EDU>, joes@idunno.princeton.edu (Joe Studholme) writes: > Hi. > > I am hunting for a way to get HyperCard to do the following: > > Search a volume > Find all files that contain a given string in their name > Return the path (the long filename) of each file for which we get a > "hit" > Some of you may recall my question some time ago if people were interested in a program for reconciling/cleaning up floppy archives. It would compare file modification dates, delete old versions etc. My thoughts on implementation were to do this as a series of XCMDS (which I may also incorporate into a compiled application) so these operations could be carried out from Hypercard and FoxBASE+/Mac. My initial thought was to return a filename each time but it would be fairly easy to accumulate them as lines in a field, as you've described. > > Now, I would have thought that there would be an XCMD or XFCN by now that > did this. But I can't seem to find one in my usual sources. Any help > would be appreciated... I've already written "getSysFoldPath" which returns the pathname of the currently active (Blessed) System Folder. We use this in FoxBASE+/Mac applications for saving preference files. The extensions mentioned above wouldn't be too hard. Mind you, I'm now booking commercial work as far ahead as March so it might take me a month to find an afternoon to do this :-) > > > Andy Dent A.D. Software phone 09 249 2719 Mac & VAX programmer 94 Bermuda Dve, Ballajura a_dent@fennel.cc.uwa.oz Western Australia 6066 a_dent@fennel.cc.uwa.oz.AU (international)