Build. Hack. Play. It's just what we do.
Build. Hack. Play. It's just what we do.
This is a platform for User Generated Content. G/O Media assumes no liability for content posted by Kinja users to this platform.

Send Siri/iOS Notes to Evernote Without a 3rd Party

Illustration for article titled Send Siri/iOS Notes to Evernote Without a 3rd Party

This is a simple Google script to automatically send iOS notes to an Evernote notebook. No third party service (e.g. IFTTT) or third-party syncing app is involved, only Google and Evernote. I like IFTTT for many things, but I have been reticent to grant it access to my Gmail and Evernote accounts.


How it works: This script scans for new notes every minute and forwards them to the designated Evernote notebook. The original note is left in Gmail/iOS but labeled as having been sent to Evernote. If you want, it would be fairly easy to have the script erase the original notes altogether. The target notebook should be used only for your iOS notes or the cleanup function may grab more than intended.

To use:

  1. Turn on syncing of Notes to Gmail under your Gmail account settings on the iOS device.
  2. Create the notebook "iOSnotes" in Evernote (or alter the variabletarget_notebook).
  3. Save the script by clicking here or pasting the code below to
  4. Set the evernote_email variable to your unique Evernote email address (found in Evernote account settings).
  5. In Google scripts, set a timer for the function 'notesToEvernote' by clicking on the stopwatch:
Illustration for article titled Send Siri/iOS Notes to Evernote Without a 3rd Party

( These things can be deployed as 'just click it', but do you really want to run an unseen script on your email?)

// Variables var evernote_email = ''; // Your Evernote forwarding email.  Find it in Evernote's settings. var target_notebook = 'iOSnotes';             // Should be a unique notebook for Notes.  Must be created in EN. var completion_label = 'Evernoted';           // The Gmail stored notes will be labeled with this to avoid resending. // function notesToEvernote() {    checkCompletionLabel();    var threads ='label:notes -label:'+completion_label+' -label:trash');    var label = GmailApp.getUserLabelByName(completion_label);    for (var h = 0; h < threads.length; h++) {      var messages = threads[h].getMessages();      for (var i = 0; i < messages.length; i++) {        messages[i].forward(evernote_email, {          subject:messages[i].getSubject() + ' @' + target_notebook});              };           };    label.addToThreads(threads);    Utilities.sleep(2000);    cleanUpSentNotes(); } function cleanUpSentNotes() {       var threads ='newer_than:1d in:sent subject:@' + target_notebook + ' to:'+evernote_email);      for (var i = 0; i < threads.length; i++) {           threads[i].moveToTrash();    }  } function checkCompletionLabel() {    var label = GmailApp.getUserLabelByName(completion_label);       if (label == null) {    GmailApp.createLabel(completion_label);    } } 

Share This Story

Get our newsletter