(no subject)
(no subject)
- Subject: (no subject)
- From: Tim <email@hidden>
- Date: Sat, 22 Oct 2005 22:13:26 -0400
Hello all,
below is code that I used to set http proxies in Panther. the code
now breaks under Tiger. I have commented the two lines that break the
code. I'm guessing it's the 'OtherViews' menu that is breaking it? It
hangs when trying to select from this menu.
When Apple upgrades the OS how can I fix issues like this? How do you
know the names of the new menus? Any suggestions are greatly
appreciated.
-------------------------
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.network"
end tell
tell application "System Events"
get properties
tell process "System Preferences"
tell window "Network"
********** these two lines halt the application *********
--click pop up button 2
--click menu item "Built-in Ethernet" of menu "OtherViews" of pop up button 2
tell group 1
tell tab group 1
delay 1
click radio button "Proxies"
try
click button "Click the lock to make changes." of window
"Network" of process ¬
"System Preferences" of application "System Events"
end try
tell group 1
tell table 1 of scroll area 1
set selected of row 2 to true
click checkbox of row 1
if value of (checkbox 1 of row 2) is 1 then
set outStr to "Turned Web Proxy ON " & return ¬
& "(set to '" & proxyServer & ":" & proxyPort & "')"
-- else
-- set outStr to "Turned Web Proxy OFF"
end if
end tell
tell group 1
set value of text field 2 to proxyServer
set value of text field 1 to proxyPort
end tell
end tell
end tell
end tell
click button "Apply Now"
end tell
end tell
end tell
-------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden