How To Get It
- Make sure you've got the Alfred Powerpack installed (soooooo worth the money and required to use extensions).
- Download the extension file: Search Evernote.alfredextension
- Simply open that file to install.
How to Use ItThe default keyword is "e".
So: simply fire-up Alfred, type "e" a space and your Evernote search.
For help with search check out Evernote's knowledge base article, Using Evernote's advanced search operators.
Why Another Search Extension?Stephen Millard wrote an extension for searching Evernote. However it had three behaviors I found undesirable:
- it opens a new window with each and every search. It's akin to every search to a website spawning a new window. I prefer to have just one window open, myself.
- it modifies the search query to always be a phrase. By default Evernote treats each search word independently; if you want to search for a phrase, surround it with quotes. Millard went out of his way to collapse all search words into a single string. I'm not sure why. Personally I'd rather have the option to do either kind of search.
- it does not bring Evernote to the front. I'd rather Evernote pop-up in front, showing the results of my search.
How Does It Work?AppleScript and Evernote's AppleScript API make this task essentially trivial.
This was my first cut at AppleScript (what a nifty little language!) Here's the source for this simple, simple script:
on alfred_script(query) tell application "Evernote" activate if (exists first window) then set first window's query string to query else open collection window with query string query end if end tell end alfred_script