• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Button click in login screen pop-up window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Button click in login screen pop-up window


  • Subject: Re: Button click in login screen pop-up window
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 05 Jun 2015 16:04:37 +0200


Le 05/06/2015 à 15:56, Hugh Hughes <email@hidden> a écrit :

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 already posted that in your identical thread in MacScripter.

Here is an edited version :

Open this Scriplet in your Editor:

tell application "Profile Manager" to activate
tell application "System Events" to tell process "Profile Manager"
   set frontmost to true
tell window 1
   keystroke "Other"
   keystroke return
   
   keystroke "USERNAME"
   keystroke tab
   delay 0.2
   keystroke "PASSWORD"
   delay 0.2
   keystroke return using {shift down}
end tell    
   repeat
       delay 0.2
       if exists window "PUT THE TITLE OF THE WINDOW HERE" then exit repeat
   end repeat
   
   tell window 1
       click button "Disable Settings"
   end tell
end tell
Alas, I don't use Os X Server and so don't own Profile Manager.

I'm not sure of what is really needed.

(1) Is it wanted to enter the string "Other" or is it required to select an item named "Other" ?
(2) You wrote that pressing shift + return open a new window.
Are you sure that it's a window ?
Often in such case the new UI item is not a window but a sheet.

On my side, to help me to learn what are the UI elements available, I use Accessibility Inspector which is available in the xCode package:
Xcode.app/Contents/Applications/Accessibility Inspector.app

Yvan KOENIG (VALLAURIS, France) vendredi 5 juin 2015 16:04:31


 _______________________________________________
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

References: 
 >Button click in login screen pop-up window (From: Hugh Hughes <email@hidden>)

  • Prev by Date: Button click in login screen pop-up window
  • Next by Date: Problem with Mavericks/Yosemite library
  • Previous by thread: Button click in login screen pop-up window
  • Next by thread: Problem with Mavericks/Yosemite library
  • Index(es):
    • Date
    • Thread