Created
August 21, 2024 14:34
-
-
Save fmal/25ef00c2d2b68f377b2f120d9c62a608 to your computer and use it in GitHub Desktop.
admin by request automation
This file contains 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
tell application "Admin By Request" to activate | |
tell application "System Events" to tell process "Admin By Request" | |
tell menu bar item 1 of menu bar 2 | |
try | |
click menu item "Request Administrator Access" of menu 1 | |
on error | |
return | |
end try | |
end tell | |
delay 0.1 | |
tell front window to key code 36 | |
delay 0.5 | |
tell text field 1 of front window | |
set focused to true | |
set value to "HEHE hehhe" | |
end tell | |
click button "OK" of front window | |
delay 1 | |
set value of attribute "AXMinimized" of front window to true | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment