I am wondering if there is a way to switch the scroll direction on a mac/osx (yosemite) programatically. If so, I want to assign some sort of script or command to a key combination to switch it quickly. I work on a mac but consistently log into windows computers and my brain wants to scroll the wrong way all the time. I haven't programmed anything on mac, still very new to it, but have done plenty in linux and assume its somewhat similar to bash scripting.
the ultimate end goal would be to have this react to a mouse being plugged in also to change both at the same time if needed, i just think it feels more natural to scroll like a windows pc on a mouse and more natural in the osx way on a trackpad. this is really just for fun and ease of use.
Note:
I believe many just have the same issue - connect the mouse and want to toggle scroll direction w/o going to the settings.
I actually went an extra step and created guide on this
https://medium.com/@liesislukas/how-to-set-scroll-direction-independently-for-mouse-and-trackpad-on-macbook-66bb6812678
You can get the zipped application on my github: https://github.com/liesislukas/apple-scroll-direction-auto-toggle or just use link from the article i posted on medium with all the screenshot and documentation.
To clarify, yes I used code from another post on this thread, yet code there was broken. I fixed the code in post above and just packed it up to the application, added nice icon so now it can be added to dock to toggle the mouse direction. Thanks @poddus for giving hint to use the Apple Script :)