2011-09-08 74 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