spotlight

In Applescript, how can I get to the Help menu Search field, like Spotlight?

In OS X, in order to quickly get at menu items from the keyboard, I want to be able to type a key combination, have it run a script, and have the script focus the Search field in the Help menu. It should work just like the key combination for Spotlight, so if I run it again, it should dismiss the menu. I can run the script with Quicksi...

Modify Spotlight metadata for a file outside Spotlight importer?

I would like to modify a Spotlight metadata attribute of a file within my application (i.e. not in a Spotlight importer) but I can't find any API for doing so. Is it possible? Pointers to the relevant docs would be ideal. In case it's helpful, here's my use case: I want to store a reference to a file system path in a Core Data sto...

Exporting reports - Quest's Spotlight on SQL Server

I'm setting up some monitoring on a few SQL Servers. Currently our environment uses Hobbit Monitoring System, but we are probably migrating to Nagios pretty soon. One of the DBAs recommended Spotlight to me, and it seems like a great piece of software, but here's what I'm wondering... Is it possible to configure Spotlight to report som...

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 there a better way? Update: I just discovered QuickLook generator for Markdown files whi...

Can Spotlight index a MacFUSE filesystem?

Spotlight indexes at the file level, so a file containing a complicated data structure may need to be split into a set of files for Spotlight to index it in a useful way. Can you use MacFUSE to achieve this more dynamically? Will Spotlight index a MacFUSE volume? Can MacFUSE handle the necessary per-file metadata? Can a MacFUSE proce...

Starting PackageMaker from Spotlight

Why does Spotlight not allow me to start PackageMaker, although it allow me to start Xcode and Dashcode, which are in the same folder? Any good guides to fixing/modifying this behavior? ...

How do you get search capability similar to Spotlight or iTunes?

I have an NSTableView that contains a few columns that are populated with data. How do I set up a search bar that can filter the rows based on the content of a specific column? I am looking for the type of thing that is done with Spotlight in the Finder or the search bar in iTunes that can filter songs by metadata. ...

Query Mac OS X Spotlight from Java

Related to: Query Windows Search from Java But this time to use OSX's spotlight I would like to consume OSX spotlight service from Java. Is there an API available? Thanks. ...

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 to. Google "Create Spotlight Plugin" and go to first link.) That's not really what I want ...

Why does Spotlight sometimes not run my query?

I'm playing around with the Spotlight API, both the Carbon and Cocoa versions, and I seem to have the same problem crop up every once in a while: The query never runs, and never fires any notifications. However, I want to stress that most of the time it does run, so something strange is going on. I'm not writing any particular app. This...

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 predicateWithFormat: @"kMDItemPath like[wcd] $SEARCH"; [query setPredicate: [predicateTem...

Finding invisible folders with spotlight by constructing an NSPredicate with NSMetadataQuery

I am constructing an NSmetaDataQuery to find invisible folders (Like ".myInvisibleFolder"). Unfortunately, spotlight does not seem to be locating folders beginning with ".", even when specifically included in the predicate. What works and doesn't work Searching for any non-invisable filename works. Searching content works (kMDItemTex...

Spotlight NSMetaDataQuery with invisible items do not auto update

The original search runs fine, but any changes to invisible items go unnoticed by the query. The query can be ran again and it will find the updates. The query is non-nil and spotlight notifications have not been unsubscribed. Is this a bug or expected behavior? I have tested this several times in a few different projects and it seem...

Programmatically force spotlight to index metadata for specific invisible file types

Is there a way to accomplish this? The reason for this is I am trying to force spotlight to receive automatic updates when invisible files and folders are added/removed. This behavior I believe is a side effect of not indexing the meta-data (but I could be wrong). I came to this conclusion from this SO question. Is the solution writing...

Determine local drive from MDItemRef

Hola. When I receive a list of MDItemRef items returned from a Spotlight query (in obj-c) I was wondering if there is an easy way to determine if they come from the OS install drive vs. an externally connected USB drive. The basic premise is that I want to ignore anything from the local drive and only watch for files on external USB...

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 keywords for my app so it appears when doing a search using Spotlight, like Midomi is do...

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 feature. Is this possible, or is this only available on MacOS X? ...

How can I restrict a user to VPN into a production domain, yet not use Windows Terminal Services to any server in that domain?

How can I restrict a user (in the development domain) to allow them to VPN into a domain, yet not use Windows Terminal Services to any server in that domain? I need for them to be able to run a client-side Java application (Quest Spotlight, actually) that will connect using Windows Auth to a single production server and display data comi...

How can I stop spotlight indexing slow archive media?

I copied the world onto a 16GB USB stick, and found Spotlight was busy indexing it for an hour or two. I tried naming folders in the privacy tab of Spotlight Preferences, and deleting .Spotlight-V100. This worked, I think, but was not remembered next time I used the stick. ...

OpenGL Spotlight

I have a spotlight that I'm attempting to use, however when I move forward and get to a specific spot (before I reach the object) the light gets cut off and disappears. Does anyone know what could be causing this, or direct me to a good tutorial that would show me how to make sure it didn't do this? I'm attempting to simulate a flashlig...