launchd - Script Management in macOS What is it? Used on macOS for managing agents and daemons and can be used to run scripts at specified intervals macOS's competitor to cron, along with other things Runs Daemons and Agents What is a Daemon?
Open in Visual Studio Code Open Automator Create a new document Select Quick Action Set “Service receives selected” to files or folders in any application Add a Run Shell Script action your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later older versions of macOS use /bin/bash if you're using something else, you probably know what to do 😉