Bookmarking/Archiving All Tabs

Is there a way to modify the scripts/bookmarklets that create bookmarks and webarchives for one window to do the same for all open tabs, saving a group of bookmarks or webarchives in the incoming group?

It’s possible to create such scripts for DEVONagent but it’s impossible for bookmarklets or other browsers.

So AppleScript can’t access all the open tabs in a Safari window? That’s surprising.

I am wrong, the latest Safari of Mac OS X 10.4.11 & 10.5.x versions support this. Here’s a basic script:


tell application "Safari"
	set theTabs to tabs of window 1
	repeat with theTab in theTabs
		if exists URL of theTab then tell application "DEVONthink Pro" to create record with {name:name of theTab, URL:URL of theTab, type:link}
	end repeat
end tell

1 Like

Thanks!