Skip to content

Instantly share code, notes, and snippets.

@SKaplanOfficial
Created April 4, 2023 06:13
Show Gist options
  • Save SKaplanOfficial/55e2c0d0cebb928124aa4b23ec14df70 to your computer and use it in GitHub Desktop.
Save SKaplanOfficial/55e2c0d0cebb928124aa4b23ec14df70 to your computer and use it in GitHub Desktop.
AppleScript script to toggle stage manager in MacOS Ventura.
tell application "System Events"
set theProcess to first application process whose name is "ControlCenter"
click menu bar item 2 of menu bar 1 of theProcess
perform action 1 of button 1 of group 1 of window 1 of theProcess
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment