Button click in login screen pop-up window
Button click in login screen pop-up window
- Subject: Button click in login screen pop-up window
- From: Hugh Hughes <email@hidden>
- Date: Fri, 05 Jun 2015 09:56:37 -0400
At my school, we use Profile Manager.
To disable the managed preferences, an admin user needs to enter the admin username and password and then hold down the shift key and hit return at the same time. Then, a window pops up with the message, "This computer will be managed. Would you like to continue with managed settings enabled?"
There are three buttons at the bottom of the window, I need to be able to click/select the middle button that is labeled, Disable Settings.
Applescript:
------------
tell application "System Events" to activate
tell application "System Events"
keystroke "Other"
keystroke return
delay 10.0
keystroke "USERNAME"
keystroke tab
delay 3.0
keystroke "PASSWORD"
delay 3.0
key down shift
keystroke return
delay 5.0
key up shift
end tell
------------
I tried using click at {910,620}, but that produced an error. I tried to get the UI elements when the window was up and received the message, busy indicator 1 of window 1 of application process loginwindow.
This was the AppleScript I used.
Applescript:
------------
tell application "System Events" to tell process "loginwindow"
set frontmost to true
delay 1
tell window 1
UI elements
end tell
end tell
------------
I would greatly appreciated any help on this.
Sincerely,
Hugh Hughes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden