MacScript for intercept click on "Send" button in Mail.app

Hello,

I tried this code to intercept the click of the “Send” button in Mail.app, but its not working … :frowning:


If MacScript("tell application " & Chr(34) & "System Events" & Chr(34) & " to key code 2 using {shift down, command down}") = True Then

Can you help me please ?