Is it potential to put in writing an AppleScript or macOS service/daemon to detect when a URL is clicked (which might launch the browser) and run a bash script as properly/as a substitute? Use case: detect when github.com hyperlinks are clicked and run a bash script that opens the PR in gh.nvim (if it isn’t a PR or one I care about it could exit out and proceed in browser). For clarification – I am joyful writing the bash script and doubtless joyful writing no matter script will choose up the URL click on. Simply want some tips on if that is potential and the way it’d be executed. Thanks.


You could
log in to reply this query.