【发布时间】:2018-08-11 19:12:38
【问题描述】:
我正在尝试在 JXA 中制作电子邮件解析器。我能够在 applescript 中做类似的事情:
tell application "Mail" to set theMessages to every message of mailbox "Inbox" of account "MyAcount" whose subject is equal to "Search Text"
repeat with aMessage in theMessages
tell application "Mail" to set {mContent, mDate} to {content, date received} of aMessage
......process each mail.....
end repeat
我将如何复制这个但在 javascript 中?
【问题讨论】:
标签: macos applescript javascript-automation