Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The only thing I need indexed in the /Applications folder are the .app files.

Is there any way to setup a filter to have mds or Spotlight ignore everything in /Applications except .apps?

Otherwise, would it be possible to setup a rule for Alfred to omit any non-.app records from /Applications? I still want documents indexed and returned, just not from that specific directory.

OS X 10.6.8 if you're wondering.

share|improve this question
2  
Why do you have non-apps in /Applications? –  Daniel Beck Nov 28 '11 at 18:46
    
Many apps choose to store files in /Applications. For instance Microsoft Office comes with an "Office" folder with a variety of non .app files. –  Ross Charette Dec 5 '11 at 16:54
add comment

1 Answer

up vote 2 down vote accepted

From the Applications features:

Spotlight Comments can also be used to ignore apps: Add "alfred:ignore" to the Spotlight Comment and Alfred will ignore the application or file.

enter image description here

So, you could at least tell it to ignore a set of documents you know before. However, I don't think going the other way round is possible at the moment (i.e. setting up a rule like "Don't index non-.app files").

share|improve this answer
    
Please correct me if I'm wrong there, can't try everything out. –  slhck Nov 28 '11 at 18:01
    
you may want to pear down your suggestions to one, the only real option i see is having a script tag all non-.app files in /Applications with alfred:ignore –  Ross Charette Nov 28 '11 at 18:24
    
Well, as far as I understand it, Alfred does not index what Spotlight can't index, so here you have a few ways to achieve that. –  slhck Nov 28 '11 at 18:53
    
Modifiying the spotlight settings files does not achieve this, moving the files and symlinking them is outside the constraints of the question, and the .noindex idea simply does not apply. If you cut out the incorrect info and condense it into one concise and correct answer, I will mark it as the correct answer. –  Ross Charette Dec 5 '11 at 17:06
    
Done so. Sorry, was just trying to offer a few ideas that go beyond your use case. –  slhck Dec 12 '11 at 23:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.