升级macOS13.1后一个能让Mac mini直接显示在iPad上的script失效了

感觉论坛里程序员哥哥挺多的,之前看这个视频

里面讲到可以用iPad作为macmini的显示器,但是升级到13.1后这个script就用不了了,应该是升级后系统设置后什么sdk改了之类的?有大佬帮忙看看怎么解决吗?
贴一下script:

set counter to 0
set x to 0
beep 1
activate application "SystemUIServer"
tell application "System Preferences"
	activate
	set the current pane to pane id "com.apple.preference.Displays"
	delay 3
	tell application "System Events"
		tell application process "System Preferences"
			tell window "Displays"
				click pop up button "Add Display"
				click menu item "youripadname" of menu "Add Display" of pop up button "Add Display" of window "Displays" of application process "System Preferences" of application "System Events"
			end tell
		end tell
	end tell
	quit
end tell
say "Done"

现在升级之后再运行这个就显示什么apple handler出问题之类的

感觉是这行出问题了

现在身边没有机器可以测试。你都试试,看哪一个适合你。

iPad无屏随航Mac的AppleScript脚本

用Shortcuts写的

1 个赞

谢谢哥哥 我来试试

搞定了谢谢哥哥,只是没找到英文对应的显示器和显示,所以就把电脑换成了中文就能正常用这个script了

哈哈,不用客气,可以用就好了。
用Mac mini连ipad的话,以前也看过一个视频,不过用的是duet(要收费的)。
BTW,你两个方法都试过了吗?觉得哪一个方便?

这个视频里做的mini 感觉还是蛮酷的

我好像是用的第一个,但是我觉得没啥实用性…使用场景太小了哈哈哈哈哈哈 但是能搞出来还是很开心的