2011-03-16 34 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

相关问题