Programmatically force spotlight to index metadata for specific types of invisible files
Is there a way to do this?
The reason for this is that I'm trying to get spotlight to get automatic updates when invisible files and folders are added / removed. This behavior, I believe, is a side effect of not indexing the metadata (but I could be wrong). I came to this conclusion from this SO question .
Is the solution written by mdimporter? Will it work even for invisible file types?
source to share
I'm not a Spotlight expert, but I'll take it anyway.
My understanding is that Spotlight will only index files of the types it knows about. If the files you want to index are of a non-standard type, then you will need to write mdimporter.
I don't know if Spotlight will index invisible files.
To start the spotlight again, check the command mdimport
.
source to share