Filed under: Software, Developer
The ever-extensible Evernote
Evernote, a versatile (and oft-mentioned) note-taking application for Mac and iPhone (as well as Windows and other mobile platforms), has recently opened up a Service API. This comes as an intriguing extension to the basic AppleScript support found in the 1.1.5 release, and opens up the possibility of creating homegrown interfaces ranging from simple calendar/todo managers to "thick" clients which can manipulate the entire collection of Evernote data.
The AppleScript library itself is quite useful, albeit slightly limiting. You can retrieve lists of notes based on searches, create new notebooks and notes from a variety of sources, and obtain properties for the various elements of Evernote. The most interesting feature of the AppleScript library is the import/export automation capability. You can export (in well-formed XML) entire notebooks, or notes from a list (such as one generated by a search). These can be transported automatically by whatever means work best for your purposes, and then imported on the other end. This, to me, is primarily interesting because it allows for "local" synchronization of large libraries without using up online quotas. It's also ideal for automatic backup of your notes, among other potential applications: a recent MacOSXHints tip shows a means of adding notes to Evernote via Quicksilver, complete with notebook, title and tagging syntax. Open the Evernote dictionary in Script Editor for the full set of definitions.
The AppleScript library lacks the ability to add tags to existing notes, move notes or delete notes and notebooks. These functions can, however, be found in the Service API. I'm waiting on an API key today, but I'm looking forward to exploring the possibilities for both desktop and web applications. Libraries for the API are available in Java, Perl, PHP, Python and Ruby -- along with sample code and documentation -- at the API overview page.
The last thing I'll mention is the query syntax, which can be of as much use in the Evernote search bar as it is in an AppleScript or API call. I hadn't fully realized the extent of the search grammar until I read the API documentation. For Evernote users who haven't explored this, it's a very effective way to build searches quickly without a lot of token-clicking. You can start with the basic tag syntax: tag:"tuaw", which will find every note tagged with "tuaw." Prefix it with a minus sign (-tag:"tuaw") to ignore any result with the "tuaw" tag. Combine multiple search parameters for boolean searches; the default search is "all", requiring the results to match every parameter in the string (AND), but you can prefix the query with any: to make it an OR search. Other possible parameters include created: and updated: (which respond to some natural language dates as well as a compact profile of ISO 8601), intitle: (search only in the titles of notes), as well as terms for narrowing to a specific notebook or querying just about any attribute of a note (latitude, longitude, altitude, author, source, etc.). See section C of the API docs for a full description of the search grammar.
It's great to see such a useful application continuing to expand itself and allow for third-party interaction. If you're interested in developing around Evernote, or just playing with the possibilities, stop by the developer page and take a look around.
Get a WordPress.com Blog
![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)


Reader Comments (Page 1 of 1)
LD said 11:25AM on 10-20-2008
No matter how hard or how many times I've tried I just can't find Evernote very useful.
Reply
dastranger said 11:46AM on 10-20-2008
Well, everyone has their own way of organizing their life. So, to each their own.
Personally, I find Evernote extremely useful. It's replaced Delicious and Google notebook entirely for me.
Chris W. said 11:35AM on 10-20-2008
I wish the iPhone app would save the notes on the iphone instead of downloading from the server.
Reply
Chris said 11:47AM on 10-20-2008
I've been tempted to use Evernote a few times over the past year. Now that they've added this last round of updates (import/export, scripting and the API), it's hard to see how people will stick with other alternatives (Yojimbo, Journlar etc).
Add the ubiquity and this has the potential to be a real game-changer [insert cheese here]!
Reply
WJL said 11:48AM on 10-20-2008
that's the MAIN huge problemo with evernote. No offline viewing. I'm actually considering canceling my account because i Need To View Offline. Great Stuff besides though. Offline viewing in a must.
Reply
Mikooster said 12:09PM on 10-20-2008
I believe you can view notes offline on OS X, just not on the iphone (yet).
WJL said 1:11PM on 10-20-2008
....You can on the Compu, but who cares. We want it on the iPhone. I don't get it. Why can't they just add that feature it seems simple enough, other apps have it. '
Reply
bc said 1:31PM on 10-20-2008
I've been using Evernote for a while now, but no offline viewing on the iPhone is the biggest problem for me, too.
a lot of the things I want to save include things I want to refer to when traveling - therefore often when I need to access my info the the most I have no internet access available (e.g. on a plane, or when avoiding Extortionary data roaming fees while out of the country)
I think a good new feature would be for Evernote to allow the user to TAG certain items that would be synced and stored locally on the iPhone.
the flexibility and all these features on the desktop side are great, but without the simple ability to have at least some of your data available when not connected to the internet, the value of Evernote on the iPhone is limited IMO.
Reply
Phil Libin said 2:59PM on 10-20-2008
Brett,
Thanks for telling people about the search syntax! It reminds me that we haven't really tried to publicize it ourselves but will now do so. One neat trick: make an elaborate query using the expanded syntax and then save it as a "saved search". Saved Searches are automatically synchronized, so you can execute that query with one click from any device.
People asking for local notes on the iPhone client: it's coming soon.
Reply
Wayne Sutton said 5:33PM on 10-20-2008
I just talked to the Evernote CEO Phil, last week on how evernote works and the future of the application. It's on a podcast here: http://talksocialnews.com/2008/10/20/evernote-mophie-britney/
Reply
Justin said 1:49PM on 10-21-2008
Brett,
I thought that you might be interested in two new Applescripts that I wrote to move NetNewsWire feed items into Evernote. Both scripts allow you to tag your items on the way into Evernote and also to decide which notebook to file the feeds in:
* NetNewsWire to Evernote: Single Headline or Tab
(For the quickest way to get an item into Evernote)
http://veritrope.com/tips/netnewswire-to-evernote-single-headline-or-tab-export-applescript
* NetNewsWire to Evernote: Batch Sending
(For when you need to do some heavier lifting slower, but brings over multiple items)
http://veritrope.com/tips/netnewswire-to-evernote-batch-send-applescript
In addition, I have created a page to track the release of other Evernote-related scripts:
http://veritrope.com/tips/evernote-applescript-resources
Your thoughts, comments, and suggestions for improvement would be greatly appreciated!
Kind Regards,
Justin
Reply