Ask Completely different is a query and reply web site for energy customers of Apple {hardware} and software program. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
One of the best solutions are voted up and rise to the highest
Requested
Seen
3 occasions
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.
lang-bash