Good Morning.
I use the following code to configure my wireless:
on clicked theObject
tell window of theObject
set Ssid to contents of combo box "Ssid"
--set Ssid to contents of text field "Ssid"
set Wep to contents of text field "Wep"
tell application "Internet Connect"
activate
tell application "System Events"
tell window 1 of process "Internet Connect"
click button "Airport" of tool bar 1
if exists button "Turn AirPort On" then
tell button "Turn Airport On"
click
end tell
end if
tell pop up button 1
perform action "AXPress"
click menu item "Other." of menu 1
end tell
repeat until exists sheet 1
delay 0.5
end repeat
keystroke Ssid
delay 0.9
tell sheet 1
tell pop up button 1
perform action "AXPress"
click menu item "WEP Password" of menu 1
end tell
repeat until exists text field 1
delay 0.5
end repeat
set value of attribute "AXFocused" of text field 1 to true
keystroke Wep
delay 0.9
click button "OK"
end tell
end tell
end tell
quit
end tell
end tell
end clicked
I would like to save and load the values of Combo box and Text field, but I’m still learning Applescript and don’t have a clue on how to do it.
Thanks for your help.