I'm not a very good with Apple script, but I made this script to start my internet connection when I log on, rather than turning it on manually. If you can improve on it, please do.
tell application "Internet Connect"
activate
connect
quit
end tell
Then all I did, was open System Preferences: Accounts. Under the Start-up items entry, I added the script. There you go, whenever you log on, the internet starts for you.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050304171008230