Add Wikipedia Search To Butler

If you've been running Butler for a while, you won't have a few items that the new versions come with, such as a Wikipedia search engine ready to use.

You can set it up so that you can either type in your search terms or have it perform a search on the text that is currently in the Clipboard.

To type the search terms:

1. Add the search engine:

Open your Butler configuration window, click on 'Engines'.
Command-N to create a new search engine. It will default to show you the Prefix and Suffix fields on the right side.
In the Prefix field, paste this line:
http://en.wikipedia.org/wiki/Special:Search?search=

In the Suffix field, enter this:
&go=Go

Name the engine whatever you like, I went with 'Wiki'.

2. Create the Web Search interface:

Back to your main Configuration, choose 'Web Search' from the '+▼ Smart Items' menu (+>Smart Items>Web Search).
Choose the name you gave to the Wikipedia engine.
Set a keyboard command to open it with, and you should be all set.

To use copied text:

Copy and paste this AppleScript into a new Butler AppleScript item. This is useful if you have selected and copied the text you want to search. It simply takes the contents of the clipboard and searches with that.

tell application "System Events"
set cha_foo to (get the clipboard) as string
open location "http://en.wikipedia.org/wiki/Special:Search?search=" & cha_foo & "&go=Go"
end tell

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Wikipedia via google lucky

Another good search engine to add: Wikipedia via google "I'm feeling lucky" search:
prefix: http://www.google.com/search?hl=en&q=site:en.wikipedia.org+
suffix: &btnI=I'm+Feeling+Lucky
This way your search gets recorded in your google history (if you're logged in).

(Adapted from Mycroft search engine.)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options