Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > Seti Apple Script troubles

Seti Apple Script troubles
Thread Tools
Addicted to MacNN
Join Date: Dec 2000
Location: Maine
Status: Offline
Reply With Quote
Oct 2, 2002, 03:38 PM
 
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 GOT WASTED WITH PHIL SHERRY!!!
     
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Oct 3, 2002, 03:11 AM
 
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
     
G4ME  (op)
Addicted to MacNN
Join Date: Dec 2000
Location: Maine
Status: Offline
Reply With Quote
Oct 3, 2002, 03:58 PM
 
thanks I will try the Cron tab thing I jeut like to see the progress in the treminal

I GOT WASTED WITH PHIL SHERRY!!!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2