每个人都会知道(使用 Mac OS X Lion 的人),默认情况下,滚动是反转的,以使其有点像 iPhone。
问题:无法让 USB 鼠标“正常滚动”,也无法让触控板“自然/反向”滚动。此设置(即使它在鼠标和触控板设置中都有列出)适用于两者。
问题:有谁熟悉 Automator 或 AppleScipting,能否给我一些关于如何创建可以切换反转设置的快捷方式的提示?我需要这个,因为当我在家时,我的 Mac Book Air 已插入键盘、鼠标和显示器,我想快速更改此设置
答案1
这应该可以做到:
tell application "System Preferences" to set the current pane to "com.apple.preference.mouse"
tell application "System Events"
tell process "System Preferences"
click radio button "Point & Click" of tab group 1 of window "Mouse"
click the first checkbox
end tell
end tell
最终工作解决方案:
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"
quit
end tell