我正在使用Lion OSX,我想做一个automator服务,它将切换滚动方向的首选项。因为我也使用Wacom平板电脑,所以滚动方向会影响我的平移,所以我想创建一个按键切换的Automator服务。然而"WatchMeDoIt“永远不会起作用,你如何让它工作(applescript?否则呢?)
非常感谢你的帮助。
发布于 2011-09-08 19:10:25
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这个应该可以了。:)
https://stackoverflow.com/questions/7344012
复制相似问题