Prev: dict exists: Checking for nested dict when not nested
Next: how to write .test file using tcltest
From: Alexandre Ferrieux on 7 Jun 2010 09:30 On Jun 7, 12:37 am, Kevin Walzer <k...(a)codebykevin.com> wrote: > On 6/1/10 3:38 AM, Alexandre Ferrieux wrote: > > > On Jun 1, 5:25 am, Kevin Walzer<k...(a)codebykevin.com> wrote: > >> I'm writing a C-based Tcl extension that iterates through the file > >> system to build a list of file names that contain a specific string. > >> (It's a Mac-specific API that is faster than glob or find.) > > > Out of curiosity, isn't there, somewhere in the OSX utilities, a find- > > like standalone executable that uses this faster API, that you could > > [open |] ? > > > -Alex > > Not that I'm aware of. The answer is to include Tcl_SetObjResult(ip, > data) in my code... Doesn't mdfind do things like that ? -Alex
From: Kevin Walzer on 7 Jun 2010 09:53 On 6/7/10 9:30 AM, Alexandre Ferrieux wrote: > > Doesn't mdfind do things like that ? > > -Alex Ah, mdfind--the CLI to Spotlight. Forgot about that. mdfind has flaws that make it unsuitable for my purposes: http://www.codebykevin.com/blosxom.cgi/2010/03/20#which-file-search What I've wound up doing is writing a Tcl wrapper for the FSCatalogSearch API: http://developer.apple.com/mac/library/documentation/Carbon/Reference/File_Manager/Reference/reference.html#//apple_ref/c/func/FSCatalogSearch based on code here: http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/ --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com
First
|
Prev
|
Pages: 1 2 Prev: dict exists: Checking for nested dict when not nested Next: how to write .test file using tcltest |