Outlook for Mac

Applescript issue with Outlook 2011 not seeing text in user name field if followed by the backslash

待回答 0 个回答

较早的帖子,发布于 2012年8月8日。 其中的信息可能已经过时。

本帖暂无中文翻译,以下为英文原文。

问题 提问于 2012年8月8日
Using Applescript I can get the user name in Outlook 2011, but it will only display the text that comes after a backslash if present in the user name field.
With this Applescript I can get the user name from Outlook:

tell application "Microsoft Outlook"
    get the user name of exchange account 1
end tell

result--> username

But in the Outlook Account it reads:

ADDOMAIN\username

If I use Applescript to enter a user name it just appends the user name to the ADDOMAIN\ text

tell application "Microsoft Outlook"
    set the user name of exchange account 1 to "username2"
end tell

In Outlook account settings will result in:

ADDOMAIN\username2

Is there any way to clear this invisible text using Applescript?  I need to deploy this to 1000+ users so using Applescript is the preferred method vs. going to each user's computer individually.

暂无回答

撰写回答

您的邮箱地址不会被公开。请勿发布密码。

This site uses Akismet to reduce spam. Learn how your comment data is processed.