OS X Lion 반전 스크롤 자동화 바로 가기 USB 마우스의 경우 “일반

모든 사람들이 알고 있듯이 (Mac OS X Lion이 있음) 기본적으로 스크롤은 iPhone과 비슷하게 반전됩니다.

문제 : USB 마우스의 경우 “일반 스크롤링”및 트랙 패드의 “자연 / 반전”스크롤링 방법이 없습니다. 설정은 (마우스와 트랙 패드 설정 모두에 나열되어 있지만) 두 가지 모두에 적용됩니다.

질문 : Automator 또는 AppleScipting에 경험이있는 사람이 반전 설정을 전환 할 수있는 바로 가기를 만드는 방법에 대한 몇 가지 팁을 알려 주시겠습니까? 집에있을 때 Mac Book Air가 키보드, 마우스 및 모니터에 연결되어 있고이 설정을 빠르게 변경할 수있는 방법이 필요합니다.



답변

이것은해야합니다 :

tell application "System Preferences" to set the current pane to "com.apple.preference.mouse"
tell application "System Events"
    tell process "System Preferences"
        click radio button "Point & Click" of tab group 1 of window "Mouse"
        click the first checkbox
    end tell
end tell

최종 작업 솔루션 :

tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.trackpad"
end tell

tell application "System Events"
    tell process "System Preferences"
        click radio button "Scroll & Zoom" of tab group 1 of window "Trackpad"
        click checkbox 1 of tab group 1 of window "Trackpad"
    end tell
end tell

tell application "System Preferences"
    quit
end tell


답변