• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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

  • Prev by Date: Re: Days and hours
  • Next by Date: Case sensitivity of text item delimiters
  • Previous by thread: Re: (no subject)
  • Next by thread: Autoreply: Applescript-users Digest, Vol 2, Issue 666
  • Index(es):
    • Date
    • Thread