AppleScript that opens a window with an Evernote
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 alfred_script(theNote) | |
set AppleScript's text item delimiters to "#" | |
set theTextItems to text items of item 1 of theNote | |
set theTitle to item 1 of theTextItems | |
set tagsWithSpaces to the rest of theTextItems | |
set theTags to {} | |
set AppleScript's text item delimiters to " " | |
repeat with aTag in tagsWithSpaces | |
set end of theTags to item 1 of text items of aTag | |
end repeat | |
tell application "Evernote" | |
set newNote to create note title theTitle with text "" tags theTags | |
open note window with newNote | |
activate | |
end tell | |
end alfred_script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment