Yet another Safari bookmark-all-tabs AppleScript
Mar 03, '06 06:36:00AM
Contributed by: hypert
There have been several hints published in the past, as noted below, to save/copy all open Safari tabs, either saved to a file, saved to a Bookmark folder, or copied to another Safari window. I wanted a script that did a little more than the others that I found, so I 'wrote' my own. My script is heavily based on the other Safari tabs scripts: Sean Long's 'Copy Safari Tabs', Mark Hunte's 'Save Safari Tabs' , and Adam Brin's 'Safari Tabs'.
I started with Sean's version, but then found Mark's and Adam's when I was looking for a way to create a Bookmark folder. The original bits I've added are:
- The title of each tab is also pasted as the name of each bookmark (something all the others didn't seem to do).
- The Bookmark folder name is entered by the user (defaults to title of current tab).
- Handle the 'More Tabs' menu (when there are more tabs than can be displayed).
- Handle multiple tabs with the same address as the first tab (except once we cross into the 'More Tabs' section, where a tab with the same address as the first tab will cause the script to think we've reached the first tab again).
- Some new error checking.
If you see weird problems with the Bookmark URL/titles pasting on top of each other, you may need to add additional delay statements as indicated in the comments.
Comments (12)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20060227192533174