Originally posted by G4ME:
I would like to run an Apple script that I can load when I resart my Computer, that will automaticly run seti in the termanial, such as I did with RC5 (god rest its soul
)
But I don't know much about apple script, how can I go about doing this, I can get it to open up the folder but I can't have it enter in "./setiathome" after having it run the open command, i know this can be done so whats the catch?
I would make a crontab file
@reboot cd path/to/seti/directory; nohup nice -n -20 ./setiathome &
call it setitab and then as root do
crontab setitab
but if you really want to use applescript, the command you want is part of Standard Additions.
do shell script: execute a shell script or command
do shell script plain text -- the command or shell script to execute. Examples are ‘ls’ or ‘/bin/ps -auxwww’
[administrator privileges boolean] -- execute the command as the administrator
[password plain text] -- use this administrator password to avoid a password dialog
[altering line endings boolean] -- change all line endings to Mac-style and trim a trailing one (default true)
[Result: plain text] -- the command output
so something like
set foo to "yourpassword"
do shell script "nohup nice -n -20 /Applications/Seti/setiathome &" password foo with administrator privileges without altering line endings
enjoy