Created
May 12, 2017 16:42
-
-
Save Behinder/073965159700c6a4d182a7ac76ef5e26 to your computer and use it in GitHub Desktop.
Generate note in Evernote from clipboard when first line is a title
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
set tekst to (get the clipboard) | |
set lns to paragraphs of tekst | |
set bodytekst to "" | |
set tytul to item 1 of lns | |
repeat with ln from 2 to length of lns | |
set linia to item ln of lns | |
set bodytekst to bodytekst & linia & " | |
" | |
end repeat | |
tell application "Evernote" | |
create note title tytul with text bodytekst | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment