How to pass user input to Apple Script then execute

applescriptautomator

How do I configure Automator to ask for a text input (example: enter website url) and pass the answer to an AppleScript that executes this command:

video-dl (user input)

So, this would be executed in the terminal:

video-dl http://www.example.com/video.mpg

Best Answer

There is no need to use AppleScript here, you can pass data from Automator directly into a shell script.

enter image description here

Depending on where you've stored the script, you may have to include the full path to the script in the action (/path/to/video-dl "$@").