Start playing partially downloaded videos in VLC |
|
|
I frequently download video files from a web server, and would like to start watching them before the download completes -- VLC, for one, can start playing a video while Safari downloads it. This AppleScript automates that task. Simply select the .download file in the Finder and run the script. You'll probably want to save this script as an Application Bundle:
on run
tell application "Finder"
copy selection to fileName0
end tell
set fileName to fileName0 as string
if fileName ends with ".download" then
set AppleScript's text item delimiters to ":"
set listNames to text items of fileName
set AppleScript's text item delimiters to ""
set baseName to last item of ...
|