以编程方式获取/设置Mac OSX默认系统键盘快捷键 [英] Programatically get/set Mac OSX default system keyboard shortcut
本文介绍了以编程方式获取/设置Mac OSX默认系统键盘快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试找到一种方法,以编程方式获取/设置在系统偏好设置"->键盘与amp;"中找到的默认OSX系统键盘快捷键(热键).鼠标->键盘快捷方式选项卡.我需要能够在后台执行此操作,因此GUI脚本编写不是解决方案.
I'm trying to find a way to programatically get/set the default OSX system keyboard shortcuts (hotkeys) found in the System Preferences -> Keyboard & Mouse -> Keyboard Shortcuts tab. I need to be able to do this in the background, so GUI scripting is not a solution.
我找不到plist或可能存储此信息的任何内容.我在使用系统偏好设置时尝试使用乐器的文件活动"跟踪,但还是空手而归.
I'm unable to find a plist or anything where this info might be stored. I tried using Instruments "File Activity" trace while using System Preferences, but again came up empty handed.
感谢您的帮助.
推荐答案
There is an API for this (getting, not setting).
这篇关于以编程方式获取/设置Mac OSX默认系统键盘快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文