When my mouse's connection drops, but I still have keyboard access, I navigate to the directory containing this script, command + down arrow to open it, and command + R to run it. This script solves the problem by turning Bluetooth off, waiting 5 seconds, and turning it back on But I work with my laptop closed so once I toggle Bluetooth off, I lose my input to the computer until I physically open it up Sometimes my Mac drops its connection to my Logitech MX Master 3, necessitating a quick Bluetooth toggle. However, the blueutil utility has been updated and can be installed for example from homebrew. See: AppleScript Error - Can’t get group 1 of window "Control Center" - StackExchange, 11/10/21 Third-Partyįor macOS Big Sur, Enrique Scherer's answer no longer works. Tell application process "Control Center"Ĭlick menu bar item "Bluetooth" of menu bar 1 Mice Configure your mouse, including the optical sensor, DPI settings, scroll and acceleration, button programming, and onboard memory. See: Setting Bluetooth with AppleScript in Big Sur - r/applescript, 12/1/20 macOS Monterey 12.0.1 Logitech G HUB gives you a single portal for optimizing and customizing all your supported Logitech G gear: mice, keyboards, headsets, speakers, and webcams. Set OnSwitch to checkbox "Bluetooth" of group 1 of window "Control Center" Set BluetoothButton to menu bar item "Bluetooth" of menu bar 1 > Set a shortcut.īluetooth Toggle.workflow tell application "System Events"
0 Comments
Leave a Reply. |