Skip to content

Instantly share code, notes, and snippets.

@ph87
Last active September 11, 2016 06:39
Show Gist options
  • Save ph87/34c1ebfde5b3ab622cf3ef9e761e59d3 to your computer and use it in GitHub Desktop.
Save ph87/34c1ebfde5b3ab622cf3ef9e761e59d3 to your computer and use it in GitHub Desktop.
A very simple applescript save given text to default notebook.
on run {input, parameters}
set content to (input as text)
set AppleScript's text item delimiters to "\n"
set textList to every text item of content
set theTitle to item 1 of textList
tell application "Evernote"
create note title theTitle with text content notebook "default"
synchronize
end tell
display notification "Success" with title "Save to Evernote!"
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment