在 Microsoft Outlook 中使用 applescript 创建新的外发邮件 [英] Create new outgoing message with applescript in Microsoft Outlook

查看:45
本文介绍了在 Microsoft Outlook 中使用 applescript 创建新的外发邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 AppleScript 通过 Microsoft Outlook 2011 for mac 创建新的外发邮件.以下示例适用于 10.6.8:

I'm trying to create a new outgoing message with Microsoft Outlook 2011 for mac, using AppleScript. The following example worked in 10.6.8:

tell application "Microsoft Outlook"
    set newMessage to make new outgoing message with properties {subject:"Hooray for automation"}
    make new recipient at newMessage with properties {email address:{name:"Jim Shank", address:"jim.shank@example.com"}}
    open newMessage
end tell

在 Lion 上,我收到以下错误:

On Lion I'm getting the following error:

Microsoft Outlook got an error: Can’t make class outgoing message.

有人知道那里出了什么问题吗?

Does anybody have a clue what went wrong there?

我使用的是离线 Outlook.

I'm using offline Outlook.

推荐答案

显然,我正在使用已过期的试用版.使用注册版本,此脚本完美运行.Boo Outlook...我花了几个小时研究这个!

Apparently, I'm using a trial version, that has expired. With registered version this script works perfectly. Boo Outlook...I spent on looking into this a couple of hours!

这篇关于在 Microsoft Outlook 中使用 applescript 创建新的外发邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆