Last active
September 11, 2016 06:39
-
-
Save ph87/34c1ebfde5b3ab622cf3ef9e761e59d3 to your computer and use it in GitHub Desktop.
A very simple applescript save given text to default notebook.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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