diff --git a/youtube-dl-applescript/download-youtube-video.applescript b/youtube-dl-applescript/download-youtube-video.applescript new file mode 100644 index 0000000..6e7ead7 --- /dev/null +++ b/youtube-dl-applescript/download-youtube-video.applescript @@ -0,0 +1,8 @@ +set theResponse to display dialog "URL de la vidéo à télécharger ?" default answer "" with icon note buttons {"Annuler", "Continuer"} default button "Continuer" + +if (button returned of theResponse) is equal to "Continuer" then + tell application "Terminal" + activate + do script "clear; cd ~/Movies/ && youtube-dl -i --no-playlist \"" & (text returned of theResponse) & "\" ; open ~/Movies/ ; exit" + end tell +end if