我有一个脚本可以完美地检查我是否收到了带有特定主题的电子邮件(如下):
tell application "Mail"
check for new mail
repeat until (background activity count) = 0
delay 0.5
end repeat
try
return subject of (first message whose read status is false and subject contains "New newsletter ordered by")
end try
end tell
现在 AppleScript 拒绝阅读电子邮件的主题。任何想法为什么?我假设有一个更新破坏了它,但我找不到任何相关信息。