开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜