This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Change the listening mode of AirPods Pro, Laurent Bourgon 2020 | |
-- Works in the background using private APIs, thanks to @smithumble | |
-- Frameworks to connect with Bluetooth | |
use framework "IOBluetooth" | |
use scripting additions | |
-- Get AirPods Name | |
tell application "BetterTouchTool" to set AIRPODS_PRO_NAME to get_string_variable "AirPodsWg_DevceName" |