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
5
votes
3 answers
Catch system event as Cmd-Tab or Spotlight in a Cocoa App
In a Cocoa App, I'm trying to find a way to catch system events like the app switcher usually launched with Cmd-Tab or spotlight, usually launched by Cmd-Space. I'm looking for either a way to catch the key event or any another way that would tell…

Jeenyus
- 993
- 1
- 6
- 7
5
votes
2 answers
List installed Applications on El Capitan using Spotlight in Swift 2.2
I am currently building a mac app which in the future should be able to kill and start apps on OS X.
For that to be possible, I need to find a way to get a list of all the installed applications on the machine.
I already did quite a bit of research…

bob_mosh
- 267
- 2
- 17
5
votes
1 answer
NSUserActivity Not Getting Indexed by Spotlight
I'm trying to get my NSUserActivity to be indexed by the private index in Spotlight in iOS. I have followed all the steps in Apple's Index Activities and Navigation Points guide but my activity doesn't seem to be getting indexed by spotlight at…

Andy Ibanez
- 12,104
- 9
- 65
- 100
5
votes
1 answer
spotlight search in the application
Is that possible for spotlight search of iphone to take the contents of my application and show as search results ?
If yes how to accomplish ?

thndrkiss
- 4,515
- 8
- 57
- 96
5
votes
1 answer
Can I make my iPhone app's content searchable via Spotlight?
On MacOS X, you can write a Spotlight Importer so that your documents and content can be indexed and searched with Spotlight. I would like to write an iPhone app that generates content that can be searched with iPhone 3.0's new Spotlight search…

strawtarget
- 1,059
- 2
- 9
- 18
5
votes
1 answer
No results in Spotlight in searches against kMDItemPath
I am trying to create a Spotlight query that searches for a string in the path of a file (I would like it to match in either the name of the file or the name of any of the folders is contained in).
NSPredicate *predicateTemplate = [NSPredicate…

Miguel Ángel Friginal
- 126
- 6
4
votes
2 answers
Obtaining metadata "Where from" of a file on Mac
I am trying to obtain the "Where from" extended file attribute which is located on the "get info" context-menu of a file in MacOS.
Example
When right-clicking on the file and displaying the info it shows the this metadata.
The highlighted part in…

ome
- 61
- 6
4
votes
1 answer
How can i open terminal in mac from the folder
Is there something way to open "terminal" like Windows for Mac OS?. In window we can open the terminal direct from the folder. But in Mac i can't open from finder.Have to do from Spotlight.

Sherin Shaju
- 246
- 4
- 15
4
votes
3 answers
Spotlight element with css
I have a spotlight circle, I'm trying to place it in the bottom left of the screen and to make the overlay take full height and width but it's not working perfectly, here is the code:
.spotlight{
display: block;
float: left;
background:…

Natalie Merrill
- 147
- 1
- 2
- 13
4
votes
1 answer
Readymade Cocoa Spotlight UI Components
I'm new to developing on the Mac and am looking to implement an interface similar to Spotlight's - the main part which seems to be an expanding table/grid view.
I was wondering if there is a component Apple provides for creating something like…

JoeR
- 1,901
- 3
- 25
- 39
4
votes
1 answer
Using Spotlight in Cocoa
Can I use the Spotlight APIs (they exist, right?) in Cocoa to determine if Spotlight (in the upper-right corner) would match a given filePath with a given string?
In other words, given a filePath such as "/Users/enchilada/Desktop/MapOfUSA.pdf", and…

Enchilada
- 3,859
- 1
- 36
- 69
4
votes
0 answers
Duplicate item show up in spotlight and thumbnail not showing
I'm trying to using NSUserActivity, Core Spotlight APIs and web markup at the same time.
So based on the suggestions given in App Search Programming Guide
If you’re using all three APIs, it works well to use the URL of the
relevant webpage as the…

xi.lin
- 3,326
- 2
- 31
- 57
4
votes
1 answer
iOS spotlight or settings icon is necessary?
My app needs to compatible with iPhone & iPad and based on iOS 6.0.
I want to know if i don't set spotlight icons or settings icons,what will be displayed? blank or use app icon instead?

Vincent Yao
- 58
- 6
4
votes
0 answers
Floating NSWindow steals focus
I'm trying to make an app that sort-of functions like the spotlight search that was demonstrated on WWDC.
I managed to get it to the floating level with kCGFloatingWindowLevelKey, however the window steals the focus from whatever window was…

hannesr
- 449
- 5
- 12
4
votes
1 answer
Identify directories that are packages in Mac OS X with Python
The Mac OS X Finder uses the concept of "packages" to make the contents of certain folders opaque to the user. I'm using os.walk() to enumerate a directory tree and I want to skip enumeration on packages such as application bundles.
The mdls…

Dean Stamler
- 382
- 4
- 13