Last active
August 20, 2022 13:57
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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