【发布时间】:2017-12-30 19:56:15
【问题描述】:
编写执行应用程序功能的 JXA 自动化脚本。
var app = Application('Pages')
var doc = app.open(new Path('path to file'))
app.export(doc, {
to: new Path('path to file'),
as: dstFormat,
withParameters: params
})
app.export 函数有时会出现错误消息框。当该消息框被抛出时,脚本执行停止。如何自动关闭那个消息框?
【问题讨论】:
标签: macos automation javascript-automation