Re: programmatically tell when spotlight/mds is indexing

2017-03-23 Thread corbin dunn
Also, please log bugs requesting for public API to do this. Thanks! corbin > On Mar 23, 2017, at 9:53 AM, Saagar Jha wrote: > > I couldn’t find a public API, but Metadata.framework defines > _MDConfigCopyStoreInformation(NSString *path). It returns an dictionary > containing the key “Currentl

Re: programmatically tell when spotlight/mds is indexing

2017-03-23 Thread Saagar Jha
I couldn’t find a public API, but Metadata.framework defines _MDConfigCopyStoreInformation(NSString *path). It returns an dictionary containing the key “CurrentlyScanning”, which you might find useful. Saagar Jha > On Mar 18, 2017, at 09:37, sqwarqDev wrote: > > >> On 18 Mar 2017, at 23:05,

Re: programmatically tell when spotlight/mds is indexing

2017-03-22 Thread Rob Petrovec
I’m not sure there is a way to tell if it is indexing other then to check for the existence of the mdworker process. But that won’t tell you if you are in the middle of a full index. It will just say that Spotlight is importing something, somewhere, for some reason which it does all the time. I

Re: programmatically tell when spotlight/mds is indexing

2017-03-18 Thread sqwarqDev
> On 18 Mar 2017, at 23:05, Jerome Krinock wrote: > > To generalize your question, you want to reverse-engineer some other app to > reveal some status information. I’ve had to do this a couple times. Thanks for the thought, but my question was really just a sanity check to make sure that ther

Re: programmatically tell when spotlight/mds is indexing

2017-03-18 Thread Jerome Krinock
To generalize your question, you want to reverse-engineer some other app to reveal some status information. I’ve had to do this a couple times. Watch in Activity Monitor and see if there is any transient process which coincides with the activity you are interested in. If you find one, there ma

programmatically tell when spotlight/mds is indexing

2017-03-17 Thread sqwarqDev
I have an app that uses MSMetadataQuery. As expected, this returns very fast results. However, there is an edge case when Spotlight chooses to re-index the whole disk (indicated in Spotlight's GUI by the blue progress bar underneath during a search). When this happens my app’s search is severel