我目前正在尝试使用简单的 applescript 脚本将 iWork .pages 文件导出到 Microsoft Word .docx 文件。
on run {path, fileName}
tell application "Pages"
set theDoc to open (path & "/" & fileName)
set theDocName to name of theDoc
export theDoc as Microsoft Word to file ((path & "/" & theDocName & ".docx") as text)
close theDoc
end tell
end run
我希望将文档导出为 Microsoft Word 文档,但是我收到以下错误:
Pages got an error: The document “1” could not be exported as “/Users/joshgrimmett/Desktop/pages2docs/in/1”. (6)