War_Hawk
01-30-2002, 01:59 PM
Hey guyes after pulling out all my hair today and yesterday i finally created a simple Apple Script that will launch the command line version of seti automatically here's what i did (bare in mind that i'm not a big time programer, suggestions are welcome) paste the following into "Apple Script editor" application
property c : 0
tell application "Terminal"
do script with command "/Users/usernam/setiathome & && exit"
repeat 500000 times
c = c + 1
end repeat
quit
end tell
Ok let me explain what the script does. it lanuches the "Termnal"app and runs seti and it issues an exit command. I found out that with every "do sript with command" another terminal window will open. so thats why i added the "exit" command with the seti launch. Now i couldn't figure out how to pause or tell the script to wait. so i did it the cheaters way. i had the script do a little loop. The reason i added the loop is My dual 800 G4 is too fast. i had to give the script a chance to caught up. Next make sure that the path is correct to your seti command line app. Now save the script as a application. Next in OS X i went in System Prefs>Login>Login Items and i added my app to the login apps. So now every time you login the seti command line app launches without you doing a single thing. Again, i'm not a programer, if someone has suggestion to clean this up let me know.
--WH
(Update :better version below keep scrolling)
property c : 0
tell application "Terminal"
do script with command "/Users/usernam/setiathome & && exit"
repeat 500000 times
c = c + 1
end repeat
quit
end tell
Ok let me explain what the script does. it lanuches the "Termnal"app and runs seti and it issues an exit command. I found out that with every "do sript with command" another terminal window will open. so thats why i added the "exit" command with the seti launch. Now i couldn't figure out how to pause or tell the script to wait. so i did it the cheaters way. i had the script do a little loop. The reason i added the loop is My dual 800 G4 is too fast. i had to give the script a chance to caught up. Next make sure that the path is correct to your seti command line app. Now save the script as a application. Next in OS X i went in System Prefs>Login>Login Items and i added my app to the login apps. So now every time you login the seti command line app launches without you doing a single thing. Again, i'm not a programer, if someone has suggestion to clean this up let me know.
--WH
(Update :better version below keep scrolling)