16인치 m1 맥북프로, 12.9아이패드 프로 서브 모니터로 너무 잘이용중인데
매번 연결할 때마다 디스플레이에 들어가서 하려니 너무 귀찮더라구요..조금 더 쉬운 방법이 없을까 찾아보던 중에
use AppleScript version "2.4"
set iPadName to "Tahoma iPad Pro" -- TODO: Change to the name of your iPad
tell application "System Preferences" to activate
tell application "System Preferences"
reveal pane id "com.apple.preference.displays"
end tell
tell application "System Events"
tell process "System Preferences"
delay 0.8
click window "Displays"
tell pop up button "Add Display" of window "Displays"
click
delay 0.1
tell (last menu item of menu 1 whose name contains iPadName)
click it
end tell
end tell
end tell
end tell
tell application "System Preferences" to close window 1
iPadName 부분만 고쳐서 애플스크립트로 저장해서 쓰시면 됩니다. 같은 와이파이에 아이패드 연결되어 있으면
위 스크립트 실행시 자동으로 사이드카연결 가능해서 좀 더 편해집니다 (연결중에 한번 더 실행하면 사이드카 해제가능합니다)
Automator랑 연동해서 spotlight로 바로 실행하니까 너무 편하네요!
잘 사용하겠습니다 ^^