If anyone is getting errors sending Apple Events from your app make sure you have a permission description in your info.plist with the key “Privacy - AppleEvents Sending Usage Description”

Took me ages to find this bloody key.