2011-09-08 61 views
0

我正在使用Lion OSX,我想製作一個automator服務來切換滾動方向首選項。 因爲我也使用Wacom平板電腦,滾動方向會導致我的平移,所以我想創建通過按鍵切換的Automator服務。然而,「WatchMeDoIt」需要永遠的功能,你如何使這項工作(蘋果?或什麼?)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