spotlight

Getting ASP to talk to OS X's Spotlight...

i'm not certain i'll find an answer but i'd thought this would make for a good brain teaser and or be an enlightening experience or disappointment lol... basically, i need to bat an idea around... Can i write a function for an asp page that will query my Mac OS X server while using its Spotlight feature? when you're using a Mac to sear...

Using Spotlight as the "database" of an application

I'm developing an OS X application to organize "things" (as iTunes is to music and iPhoto to photos). Instead of having my own database and index, I'm considering using Spotlight to essentially serve this purpose. Has anyone tried this? Is it wise? The main benefit, as I see it, would be simplicity and avoiding redundancy. It seems a b...

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 this. This is a really nice feature. Unfortunately, Apple does not document how it's imple...

Javascript floodlight tracking iframe leaves browser window blank, please help!

Hello, I have been asked to implement a javascript floodlight tag onto my site which is to be called everytime a customer downloads a pdf file. I have tried to implement this as follows: <script type="text/javascript"> function appForm() { var axel = Math.random() + ""; var a = axel * 10000000000000; document.write('<IFRAME SRC="htt...

Mac OS X: getting file system changes of the last minute?

From older times (Mac OS 10.4) I had found this command line on the web somewhere: mdfind '(kMDItemFSContentChangeDate >= $time.now(-60)) && (kMDItemFSContentChangeDate <= $time.now)' it gave me a list of files that where changed in the last minute. This does not work anymore on Mac OS 10.6. Can anybody explain why this doesn't work? ...

Spotlight query to search for all archives and ISO files that their names do not end in bin

The following Spotlight query, correctly returns all archive and ISO files on my system: kind:iso OR kind:archive However, Spotlight treats .bin files as archives too and returns .bin files in the results as well. How can I modify the above query and exclude files that end in bin from the result? I tried the following query but it is...

How do I get Spotlight attributes to display in the get info window?

I have created a spotlight importer for comic files. The attributes are successfully imported and searchable. The one thing that remains is getting the attributes to display in a file's get info window. It seems that this should be a simple matter of editing the schema.xml file so the attributes are nested inside displayattrs tags. Un...

Spotlight search with PHP

Hi. I want to add a spotlight search functionality - search results being displayed with rich contents like thumbnail etc in a drop down menu changing on each keyup event - just like the apple.com search - to a site, having data in MySQL InnoDB tables. So basically that is displaying search results based on the part of the query that has...

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

Hello All, 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 window becomes "deactivated." This window is borderless and is a slightly custom sh...

Inject Google Spotlight tag into DNN page

I've tried using Will Strohl's component but whatever I do for some reason when I inject the Spotlight script I get this text still displaying in the browser (which is a part of the markup which is embedded): tags, as close as possible to the opening tag. Creation Date: 09/29/2009 --> ...

spotlight search in the application

Hi, 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 ? ...

Spotlight top hit algorithm

Hello, 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 right results. Basically I have three important parts in the software Document ID Doc...

Is it possible (How) to have an application return custom search results in iPhone's spotlight search?

I am working on making an application that will store information, and for user convenience I'd like to make it possible for them to use Spotlight (scroll to the left until search appears on the home screen) to search for items in the app. Is this possible, and if so, can you point me to a reference? I have had no luck in finding this, ...

Obtain kMDItemKind on files inside bundles returns nil

For some reason I cannot do this on files inside bundles and files residing on different volumes. Am I the only one experiencing this problem, and if not how do I solve it? The Finder seems not having difficulties showing spotlight properties for the same files that I'm experiencing problems with. I want to obtain the kMDItemKind of ...

How can I make my iOS app show in spotlight when search for a variation of its name?

I have an iOS application which has an abbreviated name, but I would like to be able to search for the app in spotlight using either the full or abbreviated name. Is this possible? ...

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 a string such as "Virginia", how would I tell if Spotlight would show this file when "Vir...

Can I change name displayed in Spotlight search results?

I am writing a Spotlight importer for an application that stores content in files with meaningless names. There is benefit from allowing the user to search for these files, however. It's easy enough to write an importer that extracts and returns useful metadata but when the user does a search in Spotlight they are presented with the m...

How can I write a python script equivalent of mdfind using PyObjC bindings and NSMetadataQuery?

I want to write the python equivalent of mdfind. I want to use the .Spotlight-V100 metadata and I cannot find a description for the metadata db format used, but NSMetadataQuery seems to be what I need. I'd like to do this in python using the built in Obj-C bindings, but have not been able to figure out the correct incantation to get it t...

Using a Spotlight search result to open an application in a specific state

I have an application that will play a series of radio stations by choosing them from a drop down menu. Ideally I'd like to add some code, so that a spotlight search that would return any of the items in the dropdown and open the application as if you did this from within the application itself. The spotlight documentation gives no clue...