Intercepting click on send in Mail.app
Is it possible to intercept click on S开发者_StackOverflowend in Mac OS X Mail application?
Thanks
You can, but it won't necessarily be easy. You should be able to inject some code into the program (see for example SIMBL and F-Script Anywhere) and then change the button's target.
Basically it can be done by using Accessibility APIs
. I listen to moue click events in my application, so when I get a click I check whether the Mail.app
is a frontmost application and whether a click came from Send button UIElement
.
精彩评论