Launch an app when external monitor is attached with "Received Distributed Notifcation"

I am trying to run a script when an external screen is attached. For this I entered the name of the distributed notification "NSApplicationDidChangeScreenParametersNotification" for the received distributed notification.

Unfortunately nothing happens.

Any ideas?


Unfortunately this is not a distributed notification but an app internal one. I think there is currently no way in BTT to catch that, but maybe it's worth adding.