【发布时间】:2018-06-18 16:15:39
【问题描述】:
我为我的同事编写了一个应用程序,以便他们可以轻松设置 Outlook 签名。代码如下:
property includeInRandom : false
property sigName : "${signature.name}"
property sigContent : "${signature.content}"
try
tell application "Microsoft Outlook"
activate
set newOutlookSignature to make new signature with properties ¬
{name:sigName, content:sigContent, include in random:includeInRandom}
end tell
end try
问题是,如果一个同事在应用程序中更改了他的签名并再次在 Outlook 中设置它,则会有两个同名的签名。是否可以检查当前签名是否已经存在,如果存在则应该对其进行编辑/更新?
【问题讨论】:
标签: outlook applescript