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:
[robg adds: I haven't tested this one.]
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.]
•
[6,743 views]

