[Factor-talk] process command conundrum

2013-10-21 Thread CW Alston
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

Re: [Factor-talk] process command conundrum

2013-10-21 Thread Björn Lindqvist
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 , / , _ , ,

Re: [Factor-talk] process command conundrum

2013-10-21 Thread Alex Vondrak
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 . {

Re: [Factor-talk] process command conundrum

2013-10-21 Thread John Benediktsson
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

Re: [Factor-talk] process command conundrum

2013-10-21 Thread CW Alston
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.