Greetings, folks -
I'm trying to compose a find-file utility that takes advantage
of Spotlight's index on the Mac (I'm running 10.6.8). A simple search
tool built on find-file from io.directories.search works, even with
space-separated filenames, e.g., Finding Joy in Combinators.pdf, but
it walks
2013/10/21 CW Alston cwalsto...@gmail.com:
:: mdfind-request ( filename -- seq )
'kMDItemFSName == filename tri-quotes-surround append '
append ;
: mdfind-process ( filename -- process )
mdfind-request! ( -- seq )
'[ mdfind , -onlyin , / , _ , ,
Maybe this whole thing is solved by going directly to the stream solution?
$ rlwrap ./factor -run=listener 2 /dev/null
IN: scratchpad USING: io.encodings.utf8 io.launcher ;
IN: scratchpad find /home/alex/talks/factor -name *.pdf utf8 [ lines
] with-process-reader .
{
These are all great suggestions, when you get it working, it would be great
if you'd contribute it!
Best,
John.
On Mon, Oct 21, 2013 at 8:54 AM, Alex Vondrak ajvond...@gmail.com wrote:
Maybe this whole thing is solved by going directly to the stream solution?
$ rlwrap ./factor -run=listener
Helpful suggestions! I'll work on them, and let you know what works for me.
Thanks kindly, all ~cw
On Mon, Oct 21, 2013 at 10:03 AM, John Benediktsson mrj...@gmail.comwrote:
These are all great suggestions, when you get it working, it would be
great if you'd contribute it!
Best,
John.