10.4 ARD set proxy script

This script is for 10.4. In 10.5 Apple moved the network setup binary to /usr/sbin/networksetup

 

#!/bin/sh
BYPASSPROXY='put your proxy server settings here'  

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup-setproxybypassdomains "AirPort" $BYPASSPROXY 

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setproxybypassdomains "Built-in Ethernet" $BYPASSPROXY