5

AppleScriptをトリガーする電子メールの本文を取得しようとしています。テストメッセージを保存しましたが、[ルールの適用]をクリックすると、次のエラーが発生します。

「<>の<>ID9574の<>「INBOX」の<>「Gmail」をタイプ<>にすることはできません。」

編集:コードの関連部分は次のとおりです。

using terms from application "Mail"
on perform mail action with messages messageList for rule aRule
    tell application "Mail"
        repeat with thisMessage in messageList
            try
                say content of thisMessage
            on error errMsg
                display alert errMsg
            end try
        end repeat
    end tell
end perform mail action with messages
end using terms from
4

1 に答える 1

3

試す:

say (content of thisMessage as text)
于 2012-11-13T22:41:58.923 に答える