我用“快捷指令”设置了command+T为打开终端,但是在开着访达的时候,command+T是访达的新建标签页按钮,我想把它改成其它的按键组合有办法吗
1条回答 默认 最新
关注让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如果还有疑问可以评论或留言
解决方法:- 打开“系统偏好设置” -> “键盘” -> “快捷键”,在左侧选择“应用程序快捷键”。
- 点击右下角的加号按钮,选择“Finder”作为“应用程序”,在“菜单标题”中输入“新建标签页”。
- 在“键盘快捷键”中输入你想要设置的新按键组合,比如“command+shift+T”。
- 点击“添加”保存设置。 案例: 假设我想把访达的新建标签页按钮的快捷键改成“command+shift+T”:
- 打开“系统偏好设置” -> “键盘” -> “快捷键”。
- 选择“应用程序快捷键”,点击加号,选择“Finder”为应用程序,输入“新建标签页”为菜单标题,设置快捷键为“command+shift+T”。
- 点击“添加”保存设置。 代码:
tell application "System Preferences" activate reveal pane "com.apple.preference.keyboard" end tell tell application "System Events" to tell process "System Preferences" click menu item "快捷键" of menu "键盘" of list 1 of scroll area 1 of window "键盘" delay 0.5 click radio button "应用程序快捷键" of tab group 1 of window "键盘" click button "加号" of tab group 1 of window "键盘" delay 0.5 select row 1 of table 1 of scroll area 2 of tab group 1 of window "键盘" keystroke "n" using {command down, shift down} end tell tell application "System Preferences" to quit解决 无用评论 打赏 举报