I'm trying to make an Automator application that runs this command:
youtube-dl -x --audio-format wav -o "~/Downloads/%(title)s.%(ext)s" 'youtube file url'
but I’d like for it to ask me for the YouTube URL before running. Have been unsuccessful so far, would appreciate any help.
Best Answer
Addressing your comment...
The default
PATH
passed to a Run Shell Script action in Automator is:Add a
PATH
statement at the top of the code in the Run Shell Script action,To determine what the normal
PATH
is, in Terminal runecho $PATH
and then for the Run Shell Script action use whatever it outputs, e.g.