2011-03-16 38 views
0

如何使用Applescript打開Dropbox偏好設置窗口?如何使用Applescript打開Dropbox偏好設置窗口?

我假定這將是沿着

 
tell application "System Events" 
    tell application "Dropbox" 
     keystroke "," using command down 
    end tell 
end tell 

線條的東西,但是這是行不通的。也許是因爲Dropbox正在托盤/背景中運行?即:我無法使用命令標籤切換到它。

謝謝!

回答

1

不幸的是,沒有辦法做到這一點。 NSStatusItems(Dropbox是其中之一)通過可訪問性不可見。 This weblog entrythis bug提供了更多信息。請file a bug並引用該錯誤號,如果這對你很重要。

+0

'NSStatusItems'可以通過Xcode中的ApplescriptObjC訪問。 – 2011-03-17 15:29:31

+0

@NR - 這看起來不幸是真的,至少在當前日期。 :( – cwd 2011-03-29 13:16:26

相關問題