Quickly open partial Safari downloads

Jan 02, '07 07:30:00AM

Contributed by: jweber

If you're downloading a lot of large audio or video files in Safari, you may want to preview them while downloading. Normally you need to right-click the ".download" file, select "Show Package Contents", then double-click the actual file. But an AppleScript can make things quicker:

tell application "Finder"
  repeat with selected_file in (selection as list)
    if ((selected_file as text) ends with ".download") then
      set plist_path to (selected_file as text) & ":Info.plist"
      if (exists file plist_path) then
        tell application "System Events"
          set partial_file_path to value of property list item ¬
           "DownloadEntryPath" of contents of ¬
           property list file plist_path
          open partial_file_path
        end tell
      end if
    end if
  end repeat
end tell
Assign this to a keyboard command using a utility like Spark or Butler, and call it with the file selected in the Finder.

[robg adds: I haven't tested this one.]

Comments (0)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20061229172450954