Cat7373
2023-01-28 09:23:09 +08:00
使用快捷指令执行以下代码,可以自动修复(其实就是帮你做上面这堆操作,你只需要点一下):
```sh
#!/bin/bash
osascript <<EOD
use AppleScript version "2.8"
use framework "Foundation"
tell application "System Settings"
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 Settings"
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 Settings"
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 Settings"
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 Settings"
EOD
```