0

私はapplescriptを初めて使用します。選択したOutlook(2011)の電子メールの件名を次のAppleScriptで取得しようとしています。

tell application "Microsoft Outlook"
    set theMessage to the current messages

    get the subject of theMessage

end tell

しかし、次のエラーメッセージが表示されます。

{アプリケーション"MicrosoftOutlook"の着信メッセージID392990}の件名を取得できません

誰か助けてくれませんか?

4

2 に答える 2

1

私はAppleScriptにまったく慣れていません...そして、Outlook2011の特定の電子メールのバッチから「件名」と「受信日」の両方のリストを抽出するスクリプトが必要です。これは可能ですか。上記のスクリプトは、強調表示された1つの電子メールから件名を抽出するのに最適です。サイモンに感謝します

于 2015-09-04T13:40:22.493 に答える
0

これが機能しない理由は、theMessageを現在のメッセージに設定するとリストが返されるためです。{}に注意してください

tell application "Microsoft Outlook"
    set theMessage to first item of (get current messages)
    set theSubject to the subject of theMessage
end tell

set the clipboard to theSubject
于 2013-03-25T21:41:33.883 に答える