1 changed files with 8 additions and 0 deletions
@ -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…
Reference in new issue