This question already has an answer here:

I switch between my left and right hand for my mouse a lot, and every time I do, I have to go to System Preferences > Mouse > and switch the Primary mouse button. Is there any way I can create a keyboard shortcut to toggle this setting? I'm willing to figure out AppleScript if that would help me

marked as duplicate by klanomath, IconDaemon, Ɱark Ƭ, bmike Feb 15 '16 at 1:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Looks like this has already been answered here:

Swap Mouse Button using AppleScript

Tested it and the code works for a normal external mouse.

Not the answer you're looking for? Browse other questions tagged .