The ITLoginItem function(s) will easily set an app to autolaunch at login.