I would love to know the answer to this as well. I have a script i saved as a application which registers a kext file in order to use a fan control application. The system doesn't seem to save the terminal induced kextload command and so everytime I reboot or shutdown, it unloads without reloading at boot. I would like to make my script run at login or when the desktop shows like in a Windows system with startup.
You can use Lingon to launch the script (might have to save it as an application from script editor) at certain times/intervals/lots of other things.
Plus, is there a way to make the commands use my admin password and not ask me to login everytime I want to run the code?
I'm trying to play a prank on my roommate who doesn't know anything about computers
what's the command run a script in terminal?
or better yet what's the script syntax to run another script?
what i want to do is have it run every 5 minutes
on run
-- code to be done
end run
here's a better question
how do i get terminal to run a script and continue running it after terminal closes?
osascript apple.scpt &
$ play &
[1] 7154
$ kill 7154