Questions tagged [spotlight]

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.

259 questions
48
votes
4 answers

How to run a shell script using Spotlight?

Is there a way to run a shell script using Spotlight on Mac OS X 10.6? I would like to be able to invoke a shell script directly from Spotlight without opening up a terminal.
theactiveactor
  • 7,314
  • 15
  • 52
  • 60
26
votes
5 answers

Mac OS X : add a custom meta data field to any file

I would like to me able to set (and get) a custom metadata attribute for any file. What is the best way to do this? Thanks
AP.
  • 5,205
  • 7
  • 50
  • 94
20
votes
5 answers

How can I make spotlight index markdown files?

I typically use the .markdown or .md extension for markdown documents. Unfortunately spotlight refuses to index them unless they have the .txt file extension. I've seen a possible solution involving editing Info.plist files on the textmate blog. Is…
mloughran
  • 11,415
  • 7
  • 28
  • 22
16
votes
1 answer

How to run a shell script using Spotlight passing a parameter?

It was mentioned that we can execute a shell script using spotlight renaming it as "myscript.command" as described here. But is it possible to pass a parameter to the script when calling it from Spotlight? For example: Script…
Arthur Accioly
  • 801
  • 9
  • 26
14
votes
1 answer

How can I tell Spotlight to index my .dSYM bundles?

Today was the first time that I tried - and failed - to symbolicate a crash log on a newly bought MacBook (let's call this machine MB1). MB1 came with Mac OS X 10.9 pre-installed. I tracked the problem of the failing symbolication down to Spotlight…
herzbube
  • 13,158
  • 9
  • 45
  • 87
12
votes
3 answers

How to get an iPhone app to appear in Spotlight with a query that doesn't exactly match

I noticed that when I search for "Music" (for example) using Spotlight on the iPhone OS 3.0, the app "Midomi" shows up in the Spotlight results. "Midomi" doesn't exactly match "Music", but yet it appears in the results. How can I specify additional…
Tim Norman
  • 1,999
  • 1
  • 20
  • 26
11
votes
3 answers

OS X Yosemite Spotlight extensions

Is it possible to extend spotlight's search feature to support additional commands? For example, is it possible to define custom web search aliases, meaning I could type yt and it would provide results from youtube. Alternatively, is it possible…
JLoppert
  • 868
  • 1
  • 9
  • 13
9
votes
2 answers

Exiftool to create OSX visible XMP metadata in PNG images

Around my image processing software I use exiftool to successfully shuffle around exif info from Cr2, TIFF, JPG files. The added tags, such as "keywords", are all visible in OSX (mountain lion) Finder, Preview and nicely indexed by Spotlight. For…
gdh
  • 498
  • 3
  • 14
8
votes
1 answer

iOS - Change App Name for Homescreen and Spotlight

I'm working on a new iOS App, and it has a pretty long name, so I display a shortened version on the homescreen by chaing the Bundle Display Name value in the Info.plist file. However, I want to display the full name when the user searches for it…
Gavy
  • 1,939
  • 1
  • 19
  • 20
8
votes
4 answers

Can apps provide a hook for Spotlight to search content within the app?

Example: App contains messages. User searches spotlight with string from message. Spotlight finds that app. I have heard that spotlight can search app contents. But how to feed it to Spotlight on iOS?
openfrog
  • 40,201
  • 65
  • 225
  • 373
8
votes
2 answers

Calculator-like spotlight tool

How can I create a spotlight importer for an OS X app that creates a spotlight tool like the calculator spotlight tool? It's the tool where you type in an equation and the calculator app displays the result. I want to do something like that, but…
Carter Pape
  • 1,009
  • 1
  • 17
  • 40
7
votes
4 answers

Core Data Spotlight Integration in iOS

I'm developping an ios (3.1.3) application to manage contacts, tasks, activities, etc. These models are managed by core data and it works very well. Now I want to make all these items searchable in the spotlight search bar in iOS. Is that possible?…
Alexis
  • 16,629
  • 17
  • 62
  • 107
7
votes
1 answer

Understanding crash report (Partial apply...) in Swift

I'm new to Swift programming, Recently I have implemented spotlight search for my app with Swift. Everything is working well and good however I"m getting few crash reports nowadays and I have no clue what is "Partial apply" and why it is crashing.…
Feroz
  • 699
  • 5
  • 17
  • 25
7
votes
2 answers

Cocoa/Objective-C - Child window with text input without main window becoming inactive

I have a need to spawn a window that will hover just above my main window in a cocoa application. I want this main window to allow the user to enter some text in an input box. All is well until the text input box actually gains focus. The main…
Josh
  • 12,602
  • 2
  • 41
  • 47
7
votes
1 answer

Using multiple keywords in xattr via _kMDItemUserTags or kMDItemOMUserTags

While reorganizing my images, in anticipation of OSX Mavericks I am writing a script to insert tags into the xattr fields of my image files, so I can search them with Spotlight. (I am also editing the EXIF just to be safe.) My questions are: Which…
beroe
  • 11,784
  • 5
  • 34
  • 79
1
2 3
17 18