L
L
leaningless2020-07-24 21:29:09
macOS
leaningless, 2020-07-24 21:29:09

How to run a terminal command with presets?

Set the path to save the video when downloading with youtube-dl :

youtube-dl -o '/Users/admin/Downloads/youtube-dl/%(title)s.%(ext)s' "https://www.youtube.com/watch?v=5YxKm0Z8o0I"

On Win, I set a hotkey using the AutoHotKey script, which performed an action like this:
Run, youtube-dl -o '/Users/admin/Downloads/youtube-dl/%(title)s.%(ext)s' "%Clipboard%'

where Clipboard was replaced by the previously copied youtube link.

How to make similar on MacOS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Chesnokov, 2020-07-27
@cesnokov

Standard Applications > Automator perfectly takes text from the buffer and executes console scripts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question