没有菜单栏,导致没法通过 App 快捷键设置
1
gps949 2020-12-25 14:20:14 +08:00
AirBuddy
|
2
GZK007 2020-12-25 14:25:49 +08:00
蓝牙点一下不是有三个模式吗
|
3
leeum OP @GZK007 想设置成快捷键,方便一键切换,鼠标去点击感觉太慢哈。比如有的时候开着降噪听东西,有同事说句话,点击操作就太低效了
|
4
PerFectTime 2020-12-25 15:00:17 +08:00
试一下这个代码
Apple Script tell application "System Events" tell process "SystemUIServer" click (menu bar item 1 of menu bar 1 whose description contains "volume") try click menu item "nestim AirPods Pro" of menu 1 of result if value of attribute "AXMenuItemMarkChar" of menu item "Transparency" of menu 1 of result is "✓" then click menu item "Noise Cancellation" of menu 1 of result return "Noise Cancellation active" else click menu item "Transparency" of menu 1 of result return "Transparency mode active" end if on error tell application "System Events" key code 53 end tell end try end tell end tell 来源: https://www.reddit.com/r/AirpodsPro/comments/e6y2av/applescript_to_switch_between_noise_cancellation/ |
5
PerFectTime 2020-12-25 15:01:39 +08:00
nestim AirPods Pro 换成你的 AirPods 名称
|
6
PerFectTime 2020-12-25 15:31:48 +08:00
试了一下,下面这个验证是可用的
set AIRPODS_PRO_NAME to "你的 AirPods Pro" set ANC to "降噪" set TRANSPARENCY to "通透模式" tell application "System Events" tell process "SystemUIServer" tell (menu bar item 1 of menu bar 1 whose description begins with "volume") -- find volume menu bar item click delay 0.1 tell (menu item 1 of menu 1 whose name contains AIRPODS_PRO_NAME) -- find airpods menu item click tell menu 1 -- open airpods menu if value of attribute "AXMenuItemMarkChar" of menu item ANC is missing value then click menu item ANC -- switch to ANC else click menu item TRANSPARENCY -- switch to Transparency end if end tell end tell end tell end tell end tell 来源 https://www.reddit.com/r/applescript/comments/hk2hh1/script_to_switch_airpods_pro_mode/ |
7
windirt 2020-12-25 18:05:26 +08:00 via iPhone
取下耳机来,又快又有礼貌
|
8
gps949 2020-12-25 18:11:32 +08:00
@windirt
关于戴着耳机(支持通透模式的)是否礼貌这件事,让我想到一个问题,最开始出现眼镜时,是不是也是戴着眼镜跟人说话不礼貌? |
9
JerryChan31 2020-12-25 18:37:51 +08:00
@gps949 我觉得眼镜不能作为恰当的类比,戴着降噪耳机别人没有办法确认你是不是有在听他说话,但戴眼镜不妨碍。
|
10
xinbaqiu 2020-12-25 23:20:17 +08:00
@JerryChan31 这个判断的前提如果是戴着耳机和别人说话然后导致没听清,需要对方重复一次,那可能会有点不礼貌。但是如果能听清楚不妨碍沟通,那么戴与不戴应该也没有差别
|