Remix.run Logo
vehemenz 18 hours ago

I use a Shortcut for this because it cuts down on the unnecessary apps. Hammerspoon.app would work too though.

  tell application "System Settings"
   activate
  end tell
  delay 0.1

  tell application "System Events"
   tell process "System Settings"
    click menu item "Trackpad" of menu "View" of menu bar 1
    delay 0.25
    click radio button 2 of tab group 1 of group 1 of group 2 of splitter group 1 of group 1 of window 1
    click checkbox "Natural scrolling" of group 1 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window 1
    tell application "System Settings" to quit
   end tell
  end tell