Wireless WEP config Help!!

Hi.

The following script which I got from this forum does almost what I need.

tell application "Internet Connect"
	activate
	tell application "System Events"
		tell window 1 of process "Internet Connect"
			click button 2 of tool bar 1
			tell pop up button 1
				perform action "AXPress"
				click menu item "Other." of menu 1
				set theName to "whatever"
				keystroke theName
				delay 1 --you might need this to prevent the next button click from happening too quickly
			end tell
		end tell
	end tell
end tell

Now I need to click on the wireless security button, select WEP Password, and ENTER the Password.

Thanks you.

Hi,

try this:


property theName : "whatever"
property thePass : "¢¢¢¢"

tell application "Internet Connect"
	activate
	tell application "System Events"
		tell window 1 of process "Internet Connect"
			click button "Airport" of tool bar 1
			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 theName
			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 thePass
				click button "OK"
			end tell
		end tell
	end tell
end tell

Perfect!!

Thanks so much for your help. I looked all over for the commands but could not find anything on Internet Connect.
Where can I read some more on scripting for the Internet Connect? I’m new to applescript and need advice.

Thanks.

GUI scripting is a special case.
I use Prefab’s UI Browser to identify the UI elements.

if you’re new at AppleScript get stated reading the helpful tutorials on ScriptWire