2011-09-08 2 views
0

Lion OSX를 사용하고 있으며 스크롤 방향 기본 설정을 토글 할 자동화 서비스를 만들고 싶습니다. Wacom Tablet도 사용하기 때문에 스크롤 방향이 화면 이동에 악영향을 미치므로 키 입력으로 토글하는 Automator 서비스를 만들고 싶습니다. 그러나 "WatchMeDoIt"은 영원히 기능을 수행하며, 어떻게이 작업을합니까? (applescript? 또는 무엇?)Automator 환경 설정

도움을 주셔서 대단히 감사합니다.

답변

1
on run {} --put whatever is appropriate here 
    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" to quit 
end run 

이 작업을 수행해야합니다. :)

+0

놀랍게도 효과를 보았습니다. – Ninjiangstar