【发布时间】:2012-06-05 02:17:36
【问题描述】:
我正在编写一个脚本来检查是否已提交特定的 Web 表单。
目前的脚本是这样写的:
tell application "Mail"
check for new mail
set newmail to get the unread count of inbox
repeat with msg in newmail
if msg's subject contains "New newsletter built by" then
return msg's subject
end if
end repeat
end tell
我的收件箱中有一封未读电子邮件可供脚本使用,但我仍然收到错误消息:
error "Mail got an error: Can’t make 1 into type specifier." number -1700 from 1 to specifier
任何帮助都将不胜感激。
干杯!
【问题讨论】:
标签: email applescript