谁能告诉我为什么会收到此错误:
error "System Events got an error: Can’t get menu item \"Text…\" of menu item \"Save As\" of menu \"File\" of menu bar 1 of process \"Adobe Reader\"." number -1728 from menu item "Text…" of menu item "Save As" of menu "File" of menu bar 1 of process "Adobe Reader"
代码:
tell application "Adobe Reader"
tell application "System Events"
tell process "Adobe Reader"
tell menu bar 1
tell menu "File"
tell menu item "Save As"
click menu item "Text…"
end tell
end tell
end tell
end tell
end tell
end tell
答案 0 :(得分:1)
尝试
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