hey, it's what it contains:
you can put the code in your AppleScript
-- Set http(s) Proxy On-Off
-- Author: lasse
-- MAC OS Version: OSX/SnowLeopard
-- Date: 7/4/2010
tell application "Finder"
set proxy_dialog to display dialog "Set Http and Https Proxy Open or Close. Select Interface:" buttons {"AirPort On", "Ethernet On", "All off"} default button "Airport On" with title "Http(s) Proxy Settings On-off"
set proxy_interface to button returned of proxy_dialog
end tell
if proxy_interface is "AirPort On" then
do shell script "networksetup -setwebproxystate airport on"
do shell script "networksetup -setsecurewebproxystate airport on"
end if
if proxy_interface is "Ethernet On" then
do shell script "networksetup -setwebproxystate ethernet on"
do shell script "networksetup -setsecurewebproxystate ethernet on"
end if
if proxy_interface is "All off" then
do shell script "networksetup -setwebproxystate airport off"
do shell script "networksetup -setsecurewebproxystate airport off"
do shell script "networksetup -setwebproxystate ethernet off"
do shell script "networksetup -setsecurewebproxystate ethernet off"
--return
end if