28
Oct
// Save Your Safari URLs into Evernote!

Evernote user John recently posted this in the company’s Mac forum:
If anyone else has ideas about how they store bookmarks while they are researching so that they can be accessed between the EN desktop and iPhone client I would love to hear it.”
How about an AppleScript to do the job?
Features
- This AppleScript creates a note with a list of the URLs of each open tab in the frontmost window of Safari.
- Efficiency was foremost in my mind when creating this script. As such, the script creates the note in the default notebook and without any tagging. If anyone thinks that notebook selection and tagging should be included, please let me know in the comments below and I’ll consider adding it in!
Current Limitations and Open Issues
(Otherwise known as “Places Where You Could Help Out!”)
- Errors that will undoubtedly arise when you do something that I didn’t think of or test for!
How to Install and Use
Just run the script!
Change Log:
- 1.00 (October 28, 2009) INITIAL RELEASE OF SCRIPT
My fellow AppleScript ninjas — Dive in to the code and, if you have any suggestions or problems, please let me know about them in the comment thread below.
And remember:
- I am providing these scripts for the benefit of the Mac community. While they work wonderfully for me, I cannot take responsibility for any data you might lose (or if your laptop turns into a pumpkin or something…);
- “Community” means “participation”. Please share with the rest of us *how* you use these scripts in your workflow, how you think they could be improved (and feel free to help someone if they don’t understand something!)
(*
http://veritrope.com
Safari URLs List to Evernote Exporter
Version 1.0
October 28, 2009
Project Status, Latest Updates, and Comments Collected at:
http://veritrope.com/tips/safari-tabs-to-evernote
Installation: Just double-click on the script!
FastScripts Installation (Optional, but recommended):
--Download and Install FastScripts from http://www.red-sweater.com/fastscripts/index.html
--Copy script or an Alias to ~/Library/Scripts/Applications/Yojimbo
--Set up your keyboard shortcut
CHANGELOG:
1.00 INITIAL RELEASE
*)
set url_list to {}
set the date_stamp to ((the current date) as string)
set NoteTitle to "URL List from Safari Tabs on " & the date_stamp
tell application "Safari"
activate
set safariWindow to window 1
repeat with w in safariWindow
try
repeat with t in (tabs of w)
set TabTitle to (name 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
http://veritrope.com
Safari URLs List to Evernote Exporter
Version 1.0
October 28, 2009
Project Status, Latest Updates, and Comments Collected at:
http://veritrope.com/tips/safari-tabs-to-evernote
Installation: Just double-click on the script!
FastScripts Installation (Optional, but recommended):
--Download and Install FastScripts from http://www.red-sweater.com/fastscripts/index.html
--Copy script or an Alias to ~/Library/Scripts/Applications/Yojimbo
--Set up your keyboard shortcut
CHANGELOG:
1.00 INITIAL RELEASE
*)
set url_list to {}
set the date_stamp to ((the current date) as string)
set NoteTitle to "URL List from Safari Tabs on " & the date_stamp
tell application "Safari"
activate
set safariWindow to window 1
repeat with w in safariWindow
try
repeat with t in (tabs of w)
set TabTitle to (name 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








4 Responses to “Save Your Safari URLs into Evernote!”
I think notebook selection and tagging would be great!! Maybe to a folder titled “bookmarks”…
Thanks,
Tim
I’ll certainly look at this for any future revisions for the script.
Thanks Tim!
This is a GREAT idea. Thanks for writing it and even thinking to do so!
Do you do work on any other platforms? Windows? Linux? etc?
I’d like to suggest you as a possible vendor where I work, (out sourced programming etc). If you are interested please email me.
Thanks,
-tim
Glad you are enjoying it!
Right now, I am personally focusing on developing for the Mac… but part of what I do in my consulting practice is to connect my clients to all sorts of creative professionals (including Win/Linux programmers).
Either way, you can use the Contact Form to get in touch and discuss your project!
Tweetbacks
Twitter Comment
Save Your Safari URLs into Evernote! [link to post] (via @pingmicro) a nice Apple Script
– Posted using Chat Catcher
Twitter Comment
Save Your Safari URLs into Evernote! | Veritrope [link to post]
– Posted using Chat Catcher
Trackbacks/Pingbacks