【问题标题】:Get full name of outlook account with applescript使用 applescript 获取 Outlook 帐户的全名
【发布时间】:2019-09-15 11:32:14
【问题描述】:

如何使用 applescript 在 Microsoft Outlook 中获取 Outlook 帐户的名称 我试过了 告诉应用程序“Microsoft Outlook” 将名称设置为(获取帐户)的名称 --使用 html 代码创建 HTML 签名 使用属性 {name:"Official Signature", 内容:html_content} 结束告诉 但它错误为无法获取帐户名称。帐户是一个类,名称是一个属性

【问题讨论】:

  • 那是因为你需要一个来识别account。另外,不要使用name 作为变量标识符——它是Outlook 脚本语法中的属性名称(您可以希望看到为什么set name to name of... 会混淆脚本)。尝试运行tell application "Microsoft Outlook" to get the name of every account 行,看看会返回什么。
  • 是的,理想情况下,我想运行它来查找已部署计算机上的每个帐户的名称。脚本返回说error can't get every account

标签: applescript applescript-objc


【解决方案1】:

对于任何可能觉得这很有用的人:

tell application "Microsoft Outlook"
   set theAccount to the full name of the first exchange account
   --adapted from above comment account says it is an integer
   get the full name of every exchange account
end tell

【讨论】:

    猜你喜欢
    • 2017-05-19
    • 1970-01-01
    • 2017-05-12
    • 2020-11-12
    • 1970-01-01
    • 2013-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多