quit application "System Preferences"
delay 0.25
tell application "System Preferences"
--activate
set current pane to pane "com.apple.preference.trackpad"
tell application "System Events" to tell process "System Preferences"
repeat until exists window "Trackpad"
end repeat
tell window "Trackpad"
set cbClicking to checkbox "Clicking" of group 1 of window "Trackpad" of application process "System Preferences" of application "System Events"
tell cbClicking
if (its value as boolean) then click cbClicking
end tell
end tell
end tell
end tell
delay 0.25
quit application "System Preferences"
delay 0.25
tell application "System Preferences"
--activate
set current pane to pane "com.apple.preference.trackpad"
tell application "System Events" to tell process "System Preferences"
repeat until exists window "Trackpad"
end repeat
tell window "Trackpad"
set cbClicking to checkbox "Use two fingers to scroll" of group 2 of window "Trackpad" of application process "System Preferences" of application "System Events"
tell cbClicking
if not (its value as boolean) then click cbClicking
end tell
set cbClicking to checkbox "Allow horizontal scrolling" of group 2 of window "Trackpad" of application process "System Preferences" of application "System Events"
tell cbClicking
if not (its value as boolean) then click cbClicking
end tell
set cbClicking to checkbox "Clicking" of group 1 of window "Trackpad" of application process "System Preferences" of application "System Events"
tell cbClicking
if not (its value as boolean) then click cbClicking
end tell
set cbClicking to checkbox "Dragging" of group 1 of window "Trackpad" of application process "System Preferences" of application "System Events"
tell cbClicking
if not (its value as boolean) then click cbClicking
end tell
set cbClicking to checkbox 4 of group 1 of window "Trackpad" of application process "System Preferences" of application "System Events"
tell cbClicking
if not (its value as boolean) then click cbClicking
end tell
end tell
end tell
end tell
delay 0.25
quit application "System Preferences"