Automatically terminates Apple Music the instant it opens on macOS, with a native notification to let you know it happened.
Unlike polling-based approaches, this uses macOS NSWorkspace launch notifications — it's event-driven, zero-CPU when idle, and reacts instantly.
A small Swift program listens for app launch events. When Apple Music opens, it: