Help with search and view using mdfind and qlmanage?
Posted
by
Michael
on Super User
See other posts from Super User
or by Michael
Published on 2010-12-29T13:26:44Z
Indexed on
2010/12/29
13:55 UTC
Read the original article
Hit count: 572
Hi, I'm trying to use mdfind and qlmanage to find and display files with quicklook.
So far I have this, but am having trouble getting the results from mdfind formatted correctly to pass to qlmanage:
tagSearch=$(mdfind -onlyin '/Users/username/Documents/Data' -interpret 'tag:[REFERENCE] Design' | sed -e 's/.*/\"&\" /' | perl -pe 's/\n/ /' );
qlmanage -p $tagSearch
Any help would be appreciated!
© Super User or respective owner