CREATIVE CHAOS   ▋ blog

Mouse Tracking Speed OSX

PUBLISHED ON 07/02/2012 — EDITED ON 11/12/2023 — SYSOPS

Problem: Apple Magic Mouse at work is slow, Logitech MX500 at home is fast :)

Solution:

Applescript that sets the speed parameter, I use 9.0 for Magic Mouse and 6.0 for MX500.

-- Magic Mouse
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.mouse"
end tell
delay 1
tell application "System Events"
tell process "System Preferences"
tell window "Mouse"
delay 1
set value of slider 1 to 9.0
end tell
end tell
end tell
tell application "System Preferences" to quit

This is semi-solution, you still need to run the script, one of possible solutions would be a check:

ioreg -n "BNBMouseDevice" | grep -i "batterypercent"

but it does not work all the time.

TAGS: HACK, MAC, MOUSE, SETTINGS