Skip to content

Instantly share code, notes, and snippets.

@macolyte
Created September 8, 2012 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save macolyte/3676688 to your computer and use it in GitHub Desktop.
Save macolyte/3676688 to your computer and use it in GitHub Desktop.
Chrome Tabs to Evernote
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