Jump to content
  • 0

Replacing note content using local id



Hello. I have an applescript question for evernote.


I am trying to figure out how to replace the text content of a note using its local id as an identifier.


What I have so far is:

tell application "Evernote"set selected_notes to selectionset _noteID to my getNoteId(local id of (item 1 of selected_notes))--> set contents of note with local id of _noteId to "Hello World" <--end tellon getNoteId(note_id)set AppleScript's text item delimiters to "/"set the id_items to every text item of note_idset AppleScript's text item delimiters to ""return last item of id_itemsend getNoteId

The line highlighted with --> <-- is where I am stuck. I have two problems:


1) I cannot, in general, figure out how to put text content into an existing note using applescript. The standard, 'set contents of window 1 to "xx"' doesn't seem to work.


2) I haven't the faintest idea how, once I figure out part 1, to tell evernote to replace the content of a certain note (using the local id as an identifier) with text that will be passed in from elsewhere.


Can anybody help with this? Thank you very much

Link to comment

0 replies to this idea

Recommended Posts

There have been no replies to this idea yet


This topic is now archived and is closed to further replies.

  • Create New...