Why is save attachment in path giving "error "Microsoft Outlook got an error: An error has occurred." number -2700"?" in Outlook 2016?

Why is save attachment in path giving "error "Microsoft Outlook got an error: An error has occurred." number -2700"?" in Outlook 2016?

save f in saveAsName 总是失败。

f是附件,saveAsName是带文件名的路径。

来自 Message tab 的错误是:

save attachment 1 of incoming message id 442 in "/Users/path/Att-1-1 image001.jpg" --> error number -2700

底部的 applescript 结果选项卡:

error "Microsoft Outlook got an error: An error has occurred." number -2700

它失败了,因为 save ... in ... 需要一个 file 引用,而不是一个字符串。所以试试

save f in POSIX file saveAsName