Does anyone know of any way - either OS native or via 3rd-party software - to run a shell command or Applescript when a certain notification is received?
I'd like to run a shell script when Microsoft Teams - and potentially other applications - raises a system notification (e.g. when an incoming call is received).