Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Last active August 20, 2022 13:57
Show Gist options
  • Save jacobsalmela/2eb63507ac596c8380a0 to your computer and use it in GitHub Desktop.
Save jacobsalmela/2eb63507ac596c8380a0 to your computer and use it in GitHub Desktop.
Logs in a user to the GUI after access to assistive devices have been enabled for ARDAgent.app and SystemEvents.app
osascript -e 'tell application "System Events"
keystroke "username"
keystroke tab
keystroke "password"
keystroke return
keystroke return
end tell'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment