Mixing Shortcuts with my Mac and Hazel for Youtube-DL and Overcast

Some fun mixed automation I’m toying with. Nothing insanely fancy but useful for me.

I used to run a shortcut to SSH to my mac mini and run youtube-dl for me. The only annoying thing is I couldn’t figure out a way to run it and have the shortcut return immediately (vs waiting on the command to finish on my mac). I assume this was operator error as I only know the extreme basics of command line. And I mean like how to look up my uptime and not much more.

So I have moved to running a shortcut that drops the url in a text file, syncing through icloud. When my Mac sees it Hazel then fires off the script for youtube-dl and takes care of downloading it for me.

I have two shortcut options, Video or Audio. If it’s a Video one it goes into my plex folder. If I choose audio then ultimately I want to hear it like a podcast so a second script also runs @AndrewM’s Overcast script and uploads the audio into my Overcast account.

Pushover can send me notifications to let me know it’s done but I’m still tweaking those.

Fun stuff.


A variation on this classic:

1 Like

If you still want to go back to the original command line approach, in all flavours of Unix / Linux you can run a process in the background (so the command line prompt will return immediately rather than after the process completes) from the command line. To do this just add an ampersand (“&” character) at the end of the command line ie youtube-dl &

1 Like

I tried that but it was still waiting before coming back.

For what it may be worth, I’ve used screen for background processing previously and that always worked well.


I’ll check that out. Thanks!