@
apppa #9 不是,我不记得是哪个朋友写的了,我贴在这里,可以做一个 automator 快捷方式,一旦出现问题就点一下。原理是重选一下那个设置里 zoom in 的选项。
```
#!/bin/bash
osascript <<EOD
use AppleScript version "2.8"
use framework "Foundation"
tell application "System Preferences"
if it is running then
quit
delay 0.6
end if
end tell
current application's NSWorkspace's sharedWorkspace()'s openURL:(current application's NSURL's URLWithString:"x-apple.systempreferences:com.apple.preference.trackpad")
tell application "System Preferences"
activate
delay 0.8
end tell
tell application "System Events"
tell tab group 1 of group 1 of group 2 of splitter group 1 of group 1 of window of application process "System Preferences"
click radio button 2
delay 0.6
end tell
tell group 1 of scroll area 1 of group of group 2 of splitter group 1 of group 1 of window of application process "System Preferences"
click checkbox "Zoom in or out"
delay 0.5
click checkbox "Zoom in or out"
delay 0.1
end tell
end tell
quit application "System Preferences"
EOD
```