使用Applescript和Outlook 2011回复所有问题

时间:2013-04-09 18:49:34

标签: applescript outlook-2011

现在我有一个简单的小AppleScript,它将获取当前选择的消息,并打开对该消息窗口的回复。

我这样做是为了消除回复中的默认签名。出于某种原因,Outlook 2011没有选项可以在回复中排除签名,但使用此脚本可以关闭签名。

这是我的剧本:

tell application "Microsoft Outlook"
    set replyMessage to selection
    set replyMessageSubj to subject of replyMessage
    reply to replyMessage
end tell

tell application "Finder" to activate (every window whose name is "Re: " & replyMessageSubj)

打开重播窗口并为我激活它。运作良好,但我想让它全部回复,而不仅仅是回复。

Outlook 2011词典说:

reply to v : Create a reply message.
reply to message : The message to reply to.
[opening window boolean] : Should the reply message be opened in a window? Default is to show the window.
[reply to all boolean] : Whether to reply to all recipients of the message. Default it to reply to the sender only.
→ message : The reply message.

我有点像AppleScript新手,找不到好的例子...... 我该如何回复所有人?

1 个答案:

答案 0 :(得分:0)

尝试:

tell application "Microsoft Outlook"
    set replyMessage to selection
    set replyMessageSubj to subject of replyMessage
    reply to replyMessage with opening window and reply to all
end tell