2012-10-03 93 views
0

誰能告訴我爲什麼我收到此錯誤:AppleScript的Adobe Reader外保存爲文本

 
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 

回答

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 
+0

這一工程完美!任何想法爲什麼FileMaker仍然不喜歡點擊命令,但腳本編輯器呢? –

相關問題