Using Sherlock URLs to ease searches
Aug 31, '02 07:10:56AM
Contributed by: kstaken
In Jaguar, the new version of Sherlock can be controlled via "sherlock:" URLs. This allows you to open Sherlock to a particular channel and set some of the data for that channel. This is handy if you want to create URL shortcuts for the channels that you use most frequently.
The URLs take the form of "sherlock://[channel id]?[parameters]". For instance, to open the dictionary channel and look up the word "algorithm", you can use the URL "sherlock://com.apple.dictionary?query=algorithm". To just open Sherlock to the dictionary channel, you'd use "sherlock://com.apple.dictionary".
Read the rest of the article for a list of IDs and parameters for the various channels.
The channel ids and parameters that can be used are as follows:
- AppleCare - com.apple.applecare
- query - The query string to search for.
- Dictionary - com.apple.dictionary
- query - The query string to search for.
- eBay - com.apple.ebay
- The eBay channel doesn't support setting of any parameters.
- Flights - com.apple.flights
- The Flights channel doesn't support setting of any parameters.
- Internet - com.apple.internet
- query - The query string to search for.
- Movies - com.apple.movies
- zip - The zip code for the region to search in.
- city - The city to search in
- state - The state to search in
You just need to specify either zip or city and state. If you specify all of them city and state are ignored.
- Pictures - com.apple.pictures
- query - The query string to search for.
- Stocks - com.apple.stockQuotes
- query - The stock symbol to search for.
- symbol - The stock symbol to search for (alternative for query)
- Translation - com.apple.translation
- source - The text to translate.
- Yellow Pages - com.apple.yellowPages
- query - The query string to search for.
- zip - The Zip code to search in.
- city - The city to search in.
- state - The state to search in.
You should only specify either zip or city and state. If you specify all three city and state are ignored.
- Google Search (Available from unitsix.org) - org.xmldatabases.GoogleSearch
- query - The query string to search for.
Comments (1)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020831071056610