[TxMt] try mdfind

Piero D'Ancona pierodancona at gmail.com
Thu Jan 3 17:56:46 UTC 2008

Hi all. Did you try the new mdfind? it's really fast.
Test it like this: create a command
"Find and Open in Finder"
Input: selected text or line
Output: Discard
Text of the command:

mdfind "kMDItemDisplayName == ${TM_CURRENT_LINE}" | xargs open

If you put the cursor on a line containing
a filename (no path, just the filename complete
of its extension) and issue the command,
spotlight will search for the file and open it.
On my MacBookPro it takes 1/3 sec which
means ten times faster than using the GUI.

Just a test, of course one can do much better
things. For a list of a file metadata 
(like kMDItemDisplayName above) use the command
mdls  filename

(and a happy new year)

More information about the textmate mailing list