I have a script that i made to add our wireless network to a laptop. It works great if the network system preferences is already unlocked. I want this to a total easy to use script and do not want the user to have to unlock it. I have tried this script with no luck.
set myPass to "password"
tell application "System Events"
tell application process "System Preferences"
click button "Click the lock to make changes." of window "Network"
tell window 1
tell scroll area 2 of group 1
set value of text field 2 to myPass
end tell
click button "OK" of group 2
end tell
end tell
end tell
It dose not seem to work:(
Model: Macbook
Browser: Safari 525.28.3
Operating System: Mac OS X (10.5)