Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7743873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:38:47+00:00 2026-06-01T09:38:47+00:00

How do I determine that mdworker (Spotlight) has completed its first scan? I’m basically

  • 0

How do I determine that mdworker (Spotlight) has completed its first scan? I’m basically looking for the point at which the little “.” in the spotlight search icon would go away and you’d be able to perform searches. (Obviously the OS has a way to determine this since it displays a dot until it’s ready…) I’m not seeing anything from mdutil and I can’t find anything in the Spotlight APIs.

I’m currently forcing my own scan synchronously using mdimport, but this introduces a long delay (from minutes to hours depending on how aggressive I’m being about where to search) and duplicates work that mdworker is already doing.

Any solution (programmatic, scripted, documented, or undocumented) is fair game here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:38:49+00:00Added an answer on June 1, 2026 at 9:38 am

    I opened a DTS for this with Apple. The answer is that there is no supported way to do this as of 10.7. The “little dot” that the spotlight search icon uses is controlled with a private interface.

    My goal has been to get an inventory of installed applications.

    My solution currently is to gather a list of all the apps in /Applications using fts and searching for things named “.app”, and pruning as I go so I don’t get sub-applications. (This would be easier to do with NSDirectoryEnumeration, but this particular piece of code is in C++ with Core Foundation. It would be easier to do with CFURLEnumerator, but I need to support 10.4. So fts is fine.)

    Scanning for this list is very fast. Once I know the minimum number of apps on the box, I compare that to what system_profiler outputs. If system_profiler tells me that there are fewer apps than I know are in /Applications, then I scan all the bundles myself. Otherwise, I use the output from system_profiler.

    This isn’t ideal, but it’s a decent heuristic, is “mostly” right, and prevents drastic underreporting of applications.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there rules of thumb that help determine which to use in what case?
I'm looking for a way to determine that character set associated with a given
If a string contains *SUBJECT123 , how do I determine that the string has
Is there a way to determine that a process that my program started has
Using jQuery, how do I determine that user has pressed '+'. I know that
We have a series of drop down controls that determine the sort order of
If you have a given vertex how could you determine whether that vertex is
The question is related to financial products, interest rates and two properties that determine
Is there anyway to determine the Exceptions that can be thrown by methods in
I want to write a sh/bash script that can determine whether a particular directory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.