【问题标题】:Use applescript to set multiple signatures in Outlook 11在 Outlook 11 中使用 applescript 设置多个签名
【发布时间】:2013-02-06 01:48:15
【问题描述】:

我正在尝试创建一个 AppleScript,用于在 Outlook 11 for Mac 中用于传出电子邮件,以根据发件人地址在邮件中动态设置电子邮件签名。我在 Outlook 中有多个帐户,并想根据我正在使用的帐户更改签名。下面是我一直在尝试的代码,但没有任何成功。有什么建议吗?

tell application "Microsoft Outlook"
    if message sender contains {name:"emailaddress"} then
        set the message signature to signature {name:"signaturename"}
    else
        set the message signature to signature {name:"signaturename2"}
    end if
end tell

【问题讨论】:

    标签: macos outlook applescript signatures


    【解决方案1】:

    如果我理解您的问题,我认为 Outlook 2011 已内置此功能,无需任何脚本。

    1. 单击“Outlook”,然后从 Outlook 菜单中单击“首选项...”
    2. 点击“签名”图标
    3. 如果您还没有这样做,请设置您需要的签名,并为它们指定有意义的名称
    4. 点击“默认签名...”按钮
    5. 将相关签名与您需要的每个帐户相关联

    使用它似乎有点技巧。如果您希望帐户 X 的签名自动出现在新邮件中,则必须先从帐户 X 中选择一个文件夹,然后再创建新邮件。如果您这样做,则该消息应包含您为该帐户设置的正确签名。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-31
      • 2017-02-13
      • 2011-09-09
      • 1970-01-01
      • 2019-09-15
      相关资源
      最近更新 更多