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
#结束---模拟实现关开一次放大和缩小 如不需要可以删除
相关推荐
阿福不是狗5 小时前
Python使用总结之Mac安装docker并配置wechaty
python·macos·docker
gen_5 小时前
mac环境下的python、pycharm和pip安装使用
python·macos·pycharm
SY.ZHOU10 小时前
Significant Location Change
macos·ios·cocoa
buyue__12 小时前
MacOS解决局域网“没有到达主机的路由 no route to host“
macos
明月看潮生1 天前
青少年编程与数学 01-011 系统软件简介 05 macOS操作系统
macos·青少年编程·操作系统·系统软件·编程与数学
Hello.Reader2 天前
Git 安装全攻略Linux、macOS、Windows 与源码编译
linux·git·macos
Hope Fancy2 天前
macOS 连接 Docker 运行 postgres,使用navicat添加并关联数据库
macos·docker·postgresql
John Song2 天前
macOS 上使用 Homebrew 安装redis-cli
数据库·redis·macos
yanjiee2 天前
编译一个Mac M系列可以用的yuview
macos