Browse Source

new script

master
Nicolas Massé 3 years ago
parent
commit
6ff57fa39a
  1. 8
      youtube-dl-applescript/download-youtube-video.applescript

8
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
Loading…
Cancel
Save