Import Safari Tabs

Summary: Imports all of the tabs in the frontmost Safari window.
Requires: EagleFiler
Install Location: ~/Library/Scripts/Applications/Safari/

Description

There are many ways to import a single Web page, as described in Importing Web Pages and URLs. This script lets you import all the tabs in the frontmost Safari window at once.

Download in Compiled Format · Download in Text Format

Script

tell application "Safari"
    
set _urls to URL of every tab of window 1
end tell
tell application "EagleFiler"
    
import URLs _urls
end tell

Last Modified: 2014-08-02

Running the Script

You can use Script Editor (a.k.a. AppleScript Editor or AppleScript Utility) to enable Mac OS X’s built-in Script menu. Download the compiled script file and install it in the Install Location recommended above, creating any necessary folders. To run the script, just select it from the menu. FastScripts provides a similar menu that supports keyboard shortcuts and other features.