【发布时间】:2015-10-09 02:56:06
【问题描述】:
我想用 applescript 发送一封电子邮件。此脚本将在几台计算机上使用,并且电子邮件应由电子邮件地址中包含“mynetwork.com”的特定类型的帐户发送。
有没有办法自动选择包含“my network.com”的计算机电子邮件帐户?显然通配符 * 不起作用,请参阅下面的代码
property faxboxEmail : {"fax@opilbox.com"}
property theNumber : ""
property theContent : ""
property theSender : "*@mynetwork.com"
tell application "Mail"
set newMessage to make new outgoing message with properties {visible:true, subject:theNumber, content:theContent, sender:theSender}
tell newMessage
make new to recipient with properties {address:faxboxEmail}
end tell
end tell
【问题讨论】:
标签: applescript