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
0
votes
1 answer
iOS 9 Spotlight Search. Whats the proper amount of data to index?
I have an app which is basically a collection of multipage news articles. This articles contain for example 2000-3000 words sometimes. Im right now starting the implementation of iOS9 Spotlight Search.
For now I'm including the entire text of the…

Mark
- 3,653
- 10
- 30
- 62
0
votes
1 answer
How to transport the Spotlight API code to the view controller
I have written my Spotlight API code and it seems to be working okay. I can check it out in the spotlight but there's only one problem :
It won't take me to the desired view controller! How do I do that? I've added a
override func…

Amit Kalra
- 4,085
- 6
- 28
- 44
0
votes
1 answer
a and not(b or c) with Apple Spotlight query
https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/SpotlightQuery/Concepts/QueryFormat.html
Apple's dev dox provide info for File Metadata Query Expression Syntax.
The problem I'm having is that I want to do 'A and not(B or C)'…

Joe Chapman
- 3
- 2
0
votes
1 answer
How to link app to a certain View Controller
I'm using the Spotlight API introduced with iOS 9 and I have my code all setup (I can search from spotlight) but it takes me to the default view controller. How can I make it load to a specific view controller? Thanks.

Amit Kalra
- 4,085
- 6
- 28
- 44
0
votes
1 answer
Spotlight top hit algorithm
I'm implementing a MacOS X's spotlight like universal search for a web based software. So the basic functionality (fetching results, displaying them) is done and it's working perfectly, but now I have to do some more work on giving the user the…

bisko
- 3,948
- 1
- 27
- 29
0
votes
1 answer
Can I block on a Spotlight NSMetadataQuery?
I have created an NSMetadataQuery to search for all audio available through Spotlight, modelled on the following command, which returns plenty of results:
mdfind kMDItemContentTypeTree == "public.audio"
Here is the code I'm using:
NSMetadataQuery…

Grynszpan
- 147
- 7
0
votes
1 answer
Applescript to transfer spotlight comment and label
Am writing Applescript to take a list of folders, compress them to .zip files, and transfer the spotlight comment and label from the folder to the new file.
Thank you to CRGreen for the suggestion. Here is the final script.
on run {input,…

Alex Pappajohn
- 3
- 2
0
votes
1 answer
No visible interface for NSAttributedString initWithRTF on Mac OS X
This one is a little odd - because I know the canonical answer to it. It's a problem that I'd expect to see on iOS (where NSAttributedString doesn't have initWithRTF), but I'm seeing it on Mac OS X at the moment.
The code is as…

headbanger
- 1,038
- 1
- 11
- 32
0
votes
1 answer
No Spotlight on moon.inputDecorator "SECOND TIME" while disabling pointermode in rendered
I came across this problem while developing a sample application. The jsfiddle link which i am sharing have a basic functionality of opening a popup on button click. As rendered function is getting called only once while creation, thus disabling…

Rakesh_Kumar
- 1,442
- 1
- 14
- 30
0
votes
1 answer
Retrieving Spotlight query used to open document in application
If you search for something that opens Preview.app (e.g. a PDF file) in Spotlight, the application not only opens the file but actually copies the Spotlight query into the application's search field (for deeper search). iPhoto and Mail.app also do…

vicvicvic
- 6,025
- 4
- 38
- 55
0
votes
1 answer
Spotlight importer: how to hide the actual file name?
I have a Mac shoebox app with a custom data format. I'd like to add Spotlight support.
From what I read, the recommendation seems to be to define a custom UTI file type and create one file of that type for each "record" in my app as a reference to…

Mark
- 6,647
- 1
- 45
- 88
0
votes
1 answer
How to activate Xcode's Emulator Spotlight
After I activate the Xcode iOS emulator how can I open the Spotlight Search in the Menu so that I can see the application icon?
Thank you!

Teodor Ciuraru
- 3,417
- 1
- 32
- 39
0
votes
0 answers
Detect swipe right on iphone home screen programmatically
I'm creating a jailbreak tweak for iphone (running iOS 7) using theos.
I really new to this and you can consider this as my first tweak!
What I want? :
Check if its the 1st home screen
IF 1st screen then, Detect for Swipe right gesture
Do…

leo
- 1,423
- 2
- 14
- 23
0
votes
2 answers
OSX Suggestions to Search/Find Just Folders within Mounted Drives
I've got a number of mounted SMB volumes on my mac (OSX Mavericks), they are not currently indexed by spotlight.
I'd like a quick way to search and open a folder, ideally using some kind of auto-complete.
The folders are in the following…

Harry
- 329
- 1
- 10
0
votes
2 answers
mdfind used for creating symlinks not working as expected
I am trying to use the output from mdfind to create a bunch of symlinks. Output of mdfind is like this:
/pathtofile1/
/pathtofile2/
/pathtofile3/
So, I used sed to add ln -s to the start of each line, and awk {print $0 "/directory where I want…

Andrew J. Freyer
- 591
- 2
- 12
- 38