change ip and start program script!!??

I never done any scripting for the mac so i figured i would start by asking here.
I need a script that will change the TCP/IP settings from dhcp to a static one along with all the dns and gateway info. then start a series of programs.
is this possible?