Search code examples
cocoaspotlight

Programmatically force spotlight to index metadata for specific invisible file types


Is there a way to accomplish this?

The reason for this is I am trying to force spotlight to receive automatic updates when invisible files and folders are added/removed. This behavior I believe is a side effect of not indexing the meta-data (but I could be wrong). I came to this conclusion from this SO question.

Is the solution writing a mdimporter? Will it even work for invisible file types?


Solution

  • After some research, it seems there is no way to force indexing of invisible folders.

    I am instead searching all folders and getting updates for all folders. (Still very fast if you are wondering)