|
|
10.4: Spotlight's rules for indexing plain text files
As I said before even though this is a different kind of issue I think I know how to fix it. We have to tell spotlight to treat scripts like plain text files. Edit file /System/Library/Spotlight/RichText.mdimporter/Contents/Info.plist, find this section and add public.php-script as shown below:
10.4: Spotlight's rules for indexing plain text files
THANK YOU ! This is great, and should definitely have a hint of its own. I saw lots of places on the web where people try to achieve this sort of behavior.
10.4: Spotlight's rules for indexing plain text files
I did a similar approach (I thought about posting this hint, but obviously I was beaten to the punch), but used the source code importer in /Library/Spotlight. All you need to do is add the file extension to the info.plist entry under CFBundleDocumentTypes > 0 > LSItemContentTypes. Just use the New Sibling button and under value, type the extension (I added .cgi, .pl, and .pm entries). Now Spotlight sees and indexes all my Perl stuff. You can add any other type of plain text extension, which makes this much more effective than the original hint here.
10.4: Spotlight's rules for indexing plain text files
I actually tried the source code importer first, but it looks like it's made specifically for C/C++/ Objective C/C++ and I'm not sure how it's going to behave with other languages. I think the plain-text importer is safer. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|