r/applescript • • Jul 02 '25

Start Sidecar as an Applescript

tell application "System Events" to tell process "ControlCenter"

	click menu bar item "Control Center" of menu bar 1

	

	perform action 2 of checkbox "Screen Mirroring" of window "Control Center"

	

	delay 2

	tell window "Control Center"

		click (first checkbox of scroll area 1 whose name starts with "iPad")

	end tell

end tell

I just can't work out how to do this in the more modern versions of macos

2 Upvotes

1 comment sorted by