Watching for changes (Polling notifications) in Evernote

April 16, 2015

via https://dev.evernote.com/doc/articles/polling_notification.php

Useful note about how to poll an Evernote account for new content. Also a test of web clipping with Enwrite.

Polling

If your app wants to know about changes in a user's Evernote account, you'll probably consider calling the NoteStore.findNotesMetadata function periodically to search for new notes. findNotes is incredibly powerful, but it's also expensive for our servers - we need to load the user's Lucene index, perform the search across all of their notes, hit the database to pull out the results, and send those results over the network to your app. If you're building a web application, you should use webhooks instead of polling. If you have to poll, you should follow the guidelines below.

Find all single-note tags in Evernote

January 14, 2015
I’ve been working on cleaning up my Evernote, and noticed that I have a lot of tags assigned to a single note. I had successfully used Veritrope’s excellent Evernote empty tag remover applescript, so I made some small changes to write the attached script, which will find all single-note tags in your Evernote and list them in a new note, including links to each note. This makes it much easier to go through them and see which of those tags could be removed.

Just download the script, open it in Script Editor and run it.

Tip of the hat to Justin for his excellent collection of scripts at Veritrope!


Airmail tip: prevent "Save to Evernote" action from opening the created note

March 6, 2014
I’ve been trying out Airmail as my main email app. It’s quite nice, I like the built-in integrations, particularly with Evernote. By default, when you use the “Save to Evernote” action, it saves the current message to Evernote and opens the newly-created note. I went spelunking into the Airmail application directory, and found the way to disable the note-opening. Follow these steps:
  1. Quit Airmail (don’t know if this is necessary, but it can’t hurt)
  2. Open the Terminal app
  3. Run the following command in the terminal (all in a single line):
    sudo /Applications/Utilities/AppleScript\ Editor.app/Contents/MacOS/AppleScript\ Editor  /Applications/Airmail.app/Contents/Resources/Evernote.applescript
    This will ask you for your password and then run the AppleScript Editor.
    Note: in my experience, the AppleScript Editor app may open behind the terminal window - look at the Dock for its icon, and bring it to the front.
  4. In the AppleScript Editor window, find this line:
                open note window with the note
    and comment it out by inserting a # at the beginning, like this:
    #            open note window with the note
  5. Save the modified file and quit AppleScript Editor.
  6. Restart Airmail.
That’s it! Now the “Save to Evernote” action saves the current message to Evernote, but does not open it.