0

我正在使用 Lion OSX,我想制作一个可以切换滚动方向首选项的自动化服务。因为我也使用 Wacom 数位板,滚动方向搞砸了我的平移,所以我想创建通过按键切换的 Automator 服务。然而,“WatchMeDoIt”需要永远发挥作用,你如何使这项工作(applescript?还是什么?)

非常感谢你的帮助。

4

1 回答 1

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

这应该这样做。:)

于 2011-09-08T11:10:25.010 回答