

If errorMessage contains "Unsupported URL" or errorMessage contains "Could not send HEAD request" thenĭisplay dialog "No downloadable videos found on web page. FFMPEG is an incredibly powerful bit of command-line software, but if you've never 'installed' it before, or are used to command-line software then this may. Set theName to do shell script "/usr/local/bin/youtube-dl " & theURL & " -ignore-errors -no-check-certificate -no-playlist -get-title"ĭo shell script "/usr/local/bin/youtube-dl " & theURL & " -f bestvideo+bestaudio/best -ignore-errors -no-check-certificate -no-playlist -ffmpeg-location /usr/local/bin/ -o '~/Movies/%(title)s.%(ext)s'"ĭisplay notification theName with title "Download Complete!" sound name "Hero" Do shell script "/usr/local/bin/youtube-dl -update" RUN add-pkg openjdk8-jre libstdc++ ttf-dejavu For ffmpeg and ffprobe tools.
