【发布时间】:2019-05-13 06:21:43
【问题描述】:
我需要通过 AppleScript 打开受保护的 Microsoft Word 文档。 我知道密码,但我不知道如何使用 AppleScript 对其进行编码。
我尝试了一些 AppleScript 代码的变体,但没有成功。
set the myfile to ("/Users/alemac/Desktop/teste.docx")
tell application "Microsoft Word"
open myfile password document "123"
end tell
Word 打开文件(就像 Finder 一样),打开密码对话框等待密码。
【问题讨论】:
标签: ms-word passwords applescript