メールを介してフェッチして目的の結果を取得するapplescriptを探しています。
メールの件名: Registrierung fuer die Badener Hochzeitstage - 2587 (番号が必要です)
必要なメールの内容は、「Frau/Herr/Firma」から次の「space」までの名前です。
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
ここで試してみましたが、結果として、私が望んでいたものではなく、いくつかの行が得られました。