如何通过applescript将outlook电子邮件的主题发送到mac剪贴板?

如何通过applescript将outlook电子邮件的主题发送到mac剪贴板?,applescript,Applescript,我不熟悉applescript。我正在尝试使用以下applescript获取所选outlook(2011)电子邮件的主题 tell application "Microsoft Outlook" set theMessage to the current messages get the subject of theMessage end tell 但我收到了以下错误消息 无法获取{应用程序“Microsoft Outlook”的传入邮件id 392990}的主题 有人能帮

我不熟悉applescript。我正在尝试使用以下applescript获取所选outlook(2011)电子邮件的主题

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

    get the subject of theMessage

end tell
但我收到了以下错误消息

无法获取{应用程序“Microsoft Outlook”的传入邮件id 392990}的主题


有人能帮我吗?

这不起作用的原因是将消息设置为当前消息会返回一个列表。注意{}

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

我对AppleScript完全陌生。。。我想要一个脚本,从Outlook 2011中的一批特定电子邮件中提取“主题行”和“收到日期”的列表。 这可能吗。 上面的脚本非常适合从一封突出显示的电子邮件中提取主题行。 非常感谢
西蒙

请考虑使用这类消息的注释。