Create a Spotlight plugin that requests data online?

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 create import metadata importers. (I would post the link, but I was not allowed. Google "Create Spotlight Plugin" and go to the first link.)

This is not what I want to do, though.
Let's say I want to create it for Yahoo - how will it work? How does Spotlight send your program a query string and display the results that you return to it? And in what format do you return the results?

+3
source share
1 answer

There is no official API that allows you to do this. The Google importer you contacted is not even a proper Spotlight plugin, it is a hacked input manager that enters the code into Spotlight to display its results. Apparently, this hack broke on Leopard, so it even works on Tiger in general.

+3
source

Source: https://habr.com/ru/post/1710971/


All Articles