如何使用 Applescript 打开 Dropbox 首选项窗口?
如何使用 Applescript 打开 Dropbox 首选项窗口?
我假设这会是类似的事情,
tell application "System Events" tell application "Dropbox" keystroke "," using command down end tell end tell
但这不起作用。也许是因为 Dropbox 在托盘/后台运行?即:我无法使用命令选项卡切换到它。
谢谢!
How can I open the Dropbox preferences window using Applescript?
I'm assuming it would be something along the lines of
tell application "System Events" tell application "Dropbox" keystroke "," using command down end tell end tell
But this isn't working. Perhaps it's because Dropbox is running in the tray / background? ie: I can't switch to it using command-tab.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是没有办法做到这一点。 NSStatusItems(Dropbox 就是其中之一)通过辅助功能是不可见的。 此博客条目和此错误提供了更多信息。如果这对您很重要,请提交错误并引用该错误编号。
Unfortunately there is no way to do this. NSStatusItems (of which Dropbox is one) are not visible via accessibility. This weblog entry and this bug provide more information. Please file a bug and reference that bug number if this is important to you.