I am trying to get the URL from the active tab in Chrome, Open terminal, and then run the youtube-dl command with the received URL. This is what I have so far:
tell application “Google Chrome”
set bigURL to the URL of active tab of window 1
end tell
tell application “Terminal”
activate
do script “youtube-dl -f best” - bigURL
return input
end tell
it does not work however. Any suggestions?