OS X 中服务的键盘快捷键不起作用

ToN*_*NoY 8 keyboard-shortcuts services automator macos

我刚刚通过 Automator 编写了一个脚本,在“New Finder Window Home”标题下创建了一个键盘快捷键:

on run {input, parameters}

    tell application "Finder"
        activate
        make new Finder window to home
    end tell

    return input
end run
Run Code Online (Sandbox Code Playgroud)

当我从 Automator 运行脚本时,Finder 会打开我的主页选项卡。然后我从“系统偏好设置”>“键盘”>“键盘快捷键”>“服务”中选中“New Finder Window Home”并指定ControlOptionCommandSpace为快捷方式。

不幸的是,快捷方式不起作用!有什么建议?

Lri*_*Lri 6

您是否将输入类型从选定文本更改为无输入?

如果不是这样,10.7 和 10.8 上还有一个错误,其中 Automator 服务的快捷方式并不总是有效,直到您将鼠标悬停在菜单栏中的服务菜单上。它不仅仅影响新服务,因此它经常使 Automator 服务无法使用。