The best resources for developers

Can't Mac OS X's Spotlight ignore certain file types?

cristi:~ diciu$ echo "All work and no play makes Jack a dull boy" > ~/input.txt
cristi:~ diciu$ mdimport -d 4 -n ~/input.txt 2>&1 | grep Imported
    kMD2008-09-03 12:05:06.342 mdimport[1230:10b] Imported "/Users/diciu/input.txt" of type "public.plain-text" with plugIn /System/Library/Spotlight/RichText.mdimporter.

cristi:FoodBrowser diciu$ strings /System/Library/Spotlight/RichText.mdimporter/Contents/MacOS/RichText |grep Text


Tags: macos spotlight

Source: By Will Robertson as answer to the question

This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 2.5

Related code-snippets: