Last active
December 11, 2015 02:38
-
-
Save yoko/4531813 to your computer and use it in GitHub Desktop.
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 AppleScript's text item delimiters to " | |
" | |
set input_text to input as text | |
tell application "Safari" | |
set page_url to URL of current tab of window 1 | |
set page_title to name of current tab of window 1 | |
end tell | |
tell application "Evernote" | |
if (not (notebook named "Inbox" exists)) then | |
make notebook with properties {name:"Inbox"} | |
end if | |
set text_note to create note title page_title with text input_text notebook "Inbox" | |
tell text_note to set source URL to page_url | |
end tell | |
return input | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment