I want to implement a alfred workflow to control my AirPods Pro to switch between "Transparency Mode" and "ANC Mode". How can I write an apple script to simulate click on "audio" menu bar to switch noise-canceling. Or there is a better solution?
Apple Script does not directly offer a way to control the noise cancellation option of AirPods (as of May 2024).
However, I found that Apple Shortcuts has a command to control the noise cancellation state ("Set Noise Control Mode") of your AirPods ✅
a) ANC: https://www.icloud.com/shortcuts/97d28a992f3d44c8b5d94bfb86d11b2f
b) Transparency: https://www.icloud.com/shortcuts/fb14b09e390141acb58690198be81016
Those shortcuts start with a script that detects which headphone is connected to the MacBook; this improves behavior, as trying to change the noise control mode of unconnected headphones will either cause a delay (about 5 seconds) or connect those headphones to the current device (i.e., disconnecting them from any other device they're currently used on)
shortcuts run "AirPods Noise Cancellation"shortcuts run "AirPods Transparency"tell application "Shortcuts Events" to run shortcut "AirPods Noise Cancellation"tell application "Shortcuts Events" to run shortcut "AirPods Transparency"If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With