Safari Tabs
May 26 2008When I surf the internet, I often end up with a problem. As I write this, I have 22 tabs open in my browser, across 3 windows. And that’s not a particularly high amount, for me. I generally research a range of topics, and I usually keep all those tabs open in case I want to refer back to them. I’m hoping to start writing a bookmarking system soon, ala delicious, that can cope with the various ‘modes’ in which I surf and the ways in which I want to retain links (be it research, long-term recall, sharing with friends, etc). For now, I’ve written a simple Python script, which I use to save the URLs of all my open tabs to a web page. I can then close them all, and refer back to the web page if it turns out I actually need any of the links. It’s also great for preserving my browsing session across machines (including to my iPod Touch). You can see an example of the page it produces at http://sucs.org/~frosty/safaritabs.html.
It’s still a little rough around the edges, but I figured I’d post it here in case anyone else found it useful. You’ll need to tweak the code a little if you want to upload the created file to some webspace you may have, and the script requires py-appscript. It also goes without saying (due to the use of Safari and Applescript) that this is OS X only. Please let me know if you find a use for it!
Click here to download: safaritabs.py