Reply to How can I have launchd execute a script when a certain kind of usb device is connected? You may consider Stecker also. It is a free utility that triggers shortcuts on device attachment and detachment. App & System Services Processes & Concurrency May ’23