What i am trying to do is design a script that will open an application, which i will then add as a login hook so when the user logs in, the login hook will run the script as root, which will then start the application as root. I have no scripting experience at all, and have tried some examples of other scripts, but to no avail at all. Any help would be much appreciated.
EDIT. I am running OS X 10.6.4