Can't Insert Text by Typing in Password Field, El Capitan

Hey Pariah,

This AppleScript works for me when I install WhatRoute.

The commented-out lines represent detective work and aren’t part of the script proper.

-Chris

tell application "System Events"
   tell application process "SecurityAgent"
      # properties
      # UI elements
      # attributes
      
      tell window 1
         # properties
         # UI elements
         # attributes
         
         tell text field "Password:"
            # properties
            # UI elements
            # attributes
            
            tell attribute "AXValue"
               # properties
               set value to "I Am Nuts!"
            end tell
            
         end tell
         
      end tell
   end tell
end tell
1 Like