开发者

Do AppleScripts invoked by Mail filters have access to the e-mail(s) that matched the filter?

开发者 https://www.devze.com 2022-12-27 15:59 出处:网络
I’m setting up a filter in Mail on开发者_C百科 OS X that calls an AppleScript whenever an e-mail sent to a specific e-mail address arrives.

I’m setting up a filter in Mail on开发者_C百科 OS X that calls an AppleScript whenever an e-mail sent to a specific e-mail address arrives.

Will the AppleScript get passed/have access to any of the e-mail’s properties? I’d like it to take different actions based on the “from” e-mail address.


Yes: if the script invoked by the filter has a perform mail action with messages handler, then the messages argument will be populated with a list of the messages that matched the rule.

See http://www.macosxhints.com/article.php?story=20040602114525386

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号