Answers:
是的你可以!步骤如下:
打开Automator并使用一个Run AppleScript操作创建一个Automator服务,其中包含以下代码:
高塞拉山脉及以后:
tell application "System Events" to tell process "Notification Center"
if checkbox "Mute" of window 1 exists then
click checkbox "Mute" of window 1
end if
end tell
塞拉利昂及更早的时间:
tell application "System Events"
if checkbox "Mute" of window 1 of application process "FaceTime" exists then
click checkbox "Mute" of window 1 of application process "FaceTime"
end if
end tell
而已!现在,您应该已经设置了服务,并将其绑定到您可以从任何地方访问的快捷方式。
tell application "System Events" to tell process "Notification Center" to click checkbox "Mute" of first item of windows
Ctrl+Alt+M