Enable right click on Apple wired mouse

a_simmons
Contributor II

I was wondering if anybody has any suggestions to enable right click on an Apple wired mouse on 10.12.x using a script. I have tried a number of scripts that I've found online but none of them seem to work.

4 REPLIES 4

easyedc
Valued Contributor II

Do you have a script you've tried/tested? If so, post it. Just as a guess, since it's a user personal preference, you're going to have write a defaults type command. Reading through com.apple.AppleMultitouchMouse.plist shows these enabled.

$ defaults read com.apple.AppleMultitouchMouse.plist 
{
    MouseButtonDivision = 55;
    MouseButtonMode = OneButton;
    MouseHorizontalScroll = 1;
    MouseMomentumScroll = 1;
    MouseOneFingerDoubleTapGesture = 0;
    MouseTwoFingerDoubleTapGesture = 3;
    MouseTwoFingerHorizSwipeGesture = 2;
    MouseVerticalScroll = 1;
    UserPreferences = 1;
    version = 1;
}

I don't have a wired Apple mouse to at the exact moment, but can play with it some tomorrow when I have one.

a_simmons
Contributor II

Thanks for that. I ended up pushing out the updated .plist to the user profiles in the lab and that worked.

chrisx
New Contributor

@ a.simmons can you help me with that?

blinvisible
Contributor

An updated script for working around the fact that config profiles don't fully/correctly apply the mouse button settings:

https://www.jamf.com/jamf-nation/discussions/25059/managing-mouse-button-behavior-in-modern-macos