Spotlight on Mac OS X is a fast desktop search technology that allows users to organize and search for files based on metadata. Spotlight is extensible, allowing developers to provide metadata importers for their application’s documents.
Questions tagged [spotlight]
259 questions
3
votes
3 answers
Core Data app does not generate spotlight indexable metadata (or i can not find it)
I have a sandboxed, Mavericks only, Core Data, non-document, Mac application.
For one attribute of one entity I selected „Index in Spotlight“,
and in a second attempt I selected „Index in Spotlight“ and „Store in External Record File“.
Following…

MartinW
- 4,966
- 2
- 24
- 60
3
votes
0 answers
Spotlight Importer - Category
I'm working on a Spotlight Importer which works quite nice.
But I haven't been able to figure out how to display the results in their own category.
As of now, they are listed under 'Documents' - (Miles Davis - Sanctuary)
Any ideas on where to start…

Backslash
- 343
- 5
- 12
3
votes
1 answer
Mac spotlight: How does it work so quickly?
Obviously Spotlight is a very useful resource in finding documents because it has the ability to search for text within a document as well as text in the title. This process, however, must require a large amount of processing power and time.…

JFakult
- 327
- 1
- 2
- 16
3
votes
1 answer
Setting batch parameters with NSMetadataQuery or MDQuery
It would be helpful if someone shares how batching a query is done using -
- (void)setNotificationBatchingInterval:(NSTimeInterval)timeInterval
when used with NSMetadataQuery or by using
void MDQuerySetBatchingParameters (
MDQueryRef query,
…

Shashank
- 1,743
- 1
- 14
- 20
3
votes
1 answer
Creating grouped table view
Can anyone let me know what the procedure is to create the grouped NSTableView similar to the Spotlight results.

Suhaiyl
- 1,071
- 9
- 17
3
votes
2 answers
Bash Shell Script to search for files using mdfind
I have a folder of about 350 images (they are scanned recipes). To make finding them easier, I have written a search program in bash shell script. I have bash version 3.2 on Mac OS X 10.8 Mountain Lion.
The basic idea of my program:
Ask the user…

baum
- 959
- 13
- 27
3
votes
2 answers
examining audio file alternative to spotlight
i'm looking for an efficient alternative to grabbing audio file attributes in case spotlight is turned off.
Spotlight's MDItem attributes: kMDItemDurationSeconds, kMDItemAudioEncodingApplication, kMDItemAudioBitRate,…

lulu
- 669
- 10
- 26
3
votes
1 answer
Create a Spotlight plugin that queries online data?
This Mac OS Spotlight plugin queries Google and displays the search results in Spotlight:
http://www.apple.com/downloads/macosx/spotlight/googleimporter.html
I understand how to make custom metadata importers. (I'd post a link but I'm not allowed…
user126725
3
votes
1 answer
using mdls command to generate a metadata report
All,
I have shell script which goes through all the media (audio,video) files in a user-supplied folder and creates a nice text based metadata report. I'm on a Mac OS X and I'm using Spotlight's mdls command to get all the relevant metadata. The…

smokinguns
- 699
- 2
- 10
- 24
2
votes
1 answer
Where is lldb.macosx.crashlog?
Summary
The lldb scripts lldb.macosx.crashlog have some bugs in them stopping me from debugging my crashes. I want to find the source code of these scripts and fix them. Where are they?
I have looked in /Applications, /Library, and ~/Library using…

Jeff
- 3,829
- 1
- 31
- 49
2
votes
3 answers
How to get the Spotlight-like text input effect in menu bar?
I want to have an icon in the menubar in my Mac app - and the icon should spawn a menu upon clicking. While having more entries in the menu, I would like to have a top row as a universal text entry field - like it is in Spotlight.
Is it possible to…

kender
- 85,663
- 26
- 103
- 145
2
votes
1 answer
three.js SpotLight acute beam not working
I am new to three.js but I have past experience from Unity with 3d objects and rendering,
I am having trouble with the SpotLight, I am trying to shed light from an imported obj, to make it seem like a working lamp.
I can't set the light's angle to…

Sahar Hayon
- 53
- 4
2
votes
0 answers
Updating an App display name it's not working when I search on Spotlight
I have an App called App 1, I changed that name to App 2 on CFBundleDisplayName and I defined the the search keywords attributes as bellow:
if let displayName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String {
let…

raed
- 4,887
- 4
- 30
- 49
2
votes
2 answers
CSSearchableAttributeset supportPhoneCall, Navigation are not working
I'm trying to expose my app on Spotlight
Basic Info is now exposed but phone call and navigation are not working
This is my code below
var searchableItems = [CSSearchableItem]()
let hospitals = contents.compactMap { $0 as? Hospital }
…

PrepareFor
- 2,448
- 6
- 22
- 36
2
votes
2 answers
Spotlight crashes from API misuse
In the last couple of days I have seen problems with Spotlight where it closes the search window after a random amount of keystrokes. Today I found more than 20 crash dumps and the funny thing is the share a common trait, namely this information…

koenig
- 516
- 1
- 6
- 15