本文介绍了通过创建AppleScript的Outlook联系人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建通过AppleScript的Outlook联系人。该脚本是这样的:

I'm trying to create an Outlook contact via Applescript. The script looks like this:

tell application "Microsoft Outlook" to make new contact with properties {first name:"test1", last name:"test2", email addresses:{{address:"[email protected]", type:work}, {address:"[email protected]", type:home}}}

在Outlook字典告诉我,我得到的类名(联系)和右字段名称。但在保存脚本有人告诉我:预期的类名,但得到财产和首届名突出显示。奇怪的是这个错误消失,如果我删除的第一和名(以及最后和名称)的空间。
然后,我可以将它保存,但在执行我得到这个:
错误未定义。的变量接触从联系人号-2753(我的翻译,原来的错误消息是德语)。我在使用Outlook 2011(v14.3.9的小牛)。什么可能是在那里?

The Outlook dictionary tells me that I got the class name ("contact") and the field names right. But upon saving the script I'm told: expected class name, but got property and the first "name" is highlighted. Strangely enough this error goes away if I remove the space between "first" and "name" (and "last" and "name").Then I can save it, but upon executing I get this:error "The variable „contact" is not defined." number -2753 from "contact" (my translation, the original error message is in german). I'm using Outlook 2011 (v14.3.9 on Mavericks). What might be up there?

推荐答案

您脚本工作。尝试在剧本找别的地方。粘贴上面的代码段到一个新的脚本,并测试它自己。

Your script works. Try looking somewhere else in the script. Paste the snippet above into a new script and test it yourself.

这篇关于通过创建AppleScript的Outlook联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 15:19