Created
September 8, 2012 16:21
-
-
Save macolyte/3676688 to your computer and use it in GitHub Desktop.
Chrome Tabs to 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
set url_list to {} | |
set the date_stamp to ((the current date) as string) | |
set NoteTitle to "URL List from Chrome Tabs on " & the date_stamp | |
tell application "Google Chrome" | |
activate | |
set chromeWindow to window 1 | |
repeat with w in chromeWindow | |
try | |
repeat with t in (tabs of w) | |
set TabTitle to (title of t) | |
set TabURL to (URL of t) | |
set TabInfo to ("" & TabTitle & return & TabURL & return & return) | |
copy TabInfo to the end of url_list | |
end repeat | |
end try | |
end repeat | |
end tell | |
-- convert url_list to text | |
set old_delim to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to return | |
set url_list to url_list as text | |
set AppleScript's text item delimiters to old_delim | |
tell application "Evernote" | |
set EVNote to (create note with text url_list title NoteTitle) | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment