我编写了一个AppleScript来删除Microsoft Outlook中具有facebook.com域名的任何电子邮件地址记录。这是我的剧本:
tell application "Microsoft Outlook"
repeat with eachContact in every contact
set emailList to email addresses of eachContact
repeat with eachEmail in emailList
if address of eachEmail contains "facebook.com" then
delete eachEmail
end if
end repeat
end repeat
end tell
"删除everyEmail"语法不正确。它会引发以下错误:
Microsoft Outlook出错:无法将{address:\" contactname@facebook.com \",type:other}转换为类型说明符。"编号-1700来自{地址:" contactname@facebook.com",输入:other}到说明符
如何删除联系人的电子邮件地址?