0

我正在尝试将 pdf 保存为文本。以下代码在我在 scripteditor 中运行时有效,但在我在 filemaker 中运行时无效(在将我的 applescripts 转换为在 filemaker 步骤中运行之前我从未遇到过问题)。

activate application "Adobe Reader"
tell application "System Events"
    tell process "Adobe Reader"
        click menu item "Text..." of menu 1 of menu item "Save As" of menu 1 of menu bar item "File" of menu bar 1
    end tell
end tell
4

1 回答 1

2

此类命令的一个可能错误来源是“文本...”菜单项名称中的 3 个点。一些菜单项实际上使用 3 个句点,而另一些则使用省略号(您可以使用选项分号键入)。我以前使用过错误的表格,所以请确保您为菜单项使用了正确的表格。

唯一确定的方法是尝试两者,看看哪个有效。通常使用省略号,因此最好先尝试该形式。

于 2012-10-10T04:49:08.143 回答