MacOS触控板缩放暂时失灵问题解决

我的系统版本为Monterey 12.5.1,亲测有效

直接创建脚本xxx.sh,并在终端执行脚本bash xxx.sh即可解决此问题,脚本内容如下:

sh 复制代码
#!/bin/bash


killall Finder #kill Finder如不需要可以删除
killall Dock   #kill Dock 如不需要可以删除


#开始---模拟实现关开一次放大和缩小 如不需要可以删除
osascript <<EOD
tell application "System Preferences"
	if it is running then
		quit
		delay 0.6
	end if
end tell
tell application "System Preferences"
	reveal anchor "trackpadTab" of pane id "com.apple.preference.trackpad"
end tell
tell application "System Events" to tell process "System Preferences"
	click radio button 2 of tab group 1 of window 1
	click checkbox 2 of tab group 1 of window 1
	click checkbox 2 of tab group 1 of window 1
end tell
quit application "System Preferences"
EOD
#结束---模拟实现关开一次放大和缩小 如不需要可以删除
相关推荐
pe7er5 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep8 天前
mac生效的终端查看
macos
iOS门童9 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~9 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员9 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843949 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei9 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利9 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen9 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c9 天前
如虎添翼-MacOS
macos