【发布时间】:2017-05-08 21:40:04
【问题描述】:
我正在寻找一个通过我的邮件获取所需结果的 applescript:
邮件主题:Registrierung fuer die Badener Hochzeitstage - 2587(这里我需要号码)
我需要的电子邮件的内容是“Frau/Herr/Firma”之后的名称,直到下一个“空格”
我的 php/mysql 代码有一个错误,因此我的数据库中没有这个,所以我需要解析大约 400 封电子邮件。
tell application "Mail"
set theMessages to message 1 of mailbox "INBOX" of account "Die Badenerhochzeitstage" whose subject begins with "Registrierung fuer"
set theContent to content of theMessages
set someData to paragraphs of theContent
repeat with someData in theContent
if someData begins with "Firma" then
set theURL to paragraph of someData
else
set theURL to paragraph 10 of theContent -- this works but this line can change weekly
end if
end repeat
end tell
我在这里尝试过,但结果只是得到了一些线条,而不是我想要的。
【问题讨论】:
标签: applescript