Determining if mdworker (Spotlight) completed the first scan

How to determine that mdworker(Spotlight) has completed its first scan? I'm basically looking for a point where a small "." the searchlight disappears in the search icon and you can search. (Obviously, the OS has a way to determine this, since it displays the point until it is ready ...) I don’t see anything from mdutil, and I can’t find anything in the Spotlight API.

Currently, I forcefully run my own scan using mdimport, but this leads to a long delay (from minutes to an hour depending on how aggressive I do where to look) and duplicates the work that is mdworkeralready doing.

Any solution (software, scripted, documented or undocumented) is an honest game here.

+5
source share
1 answer

I opened DTS for this with Apple. The answer is that there is no supported way to do this with 10.7. The "small dot" used by the searchlight search icon is controlled via a private interface.

My goal was to get a list of installed applications.

, / fts ".app" , , -. ( NSDirectoryEnumeration, ++ Core Foundation. CFURLEnumerator, 10.4. , fts . )

. , , system_profiler. system_profiler , / , , . system_profiler.

, , " " .

+1

All Articles