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 > Trying to AppleScript SETI CLI

Trying to AppleScript SETI CLI
Thread Tools
Mac Elite
Join Date: Apr 2000
Location: Denville, NJ.
Status: Offline
Reply With Quote
Aug 20, 2002, 05:16 PM
 
I'm a complete rookie at AppleScript. Now, having said that, here goes. I asked about writing a script over in Mac OS X Software and Synotic got me started. My SETI CLI program is named "setiathome". It's in a folder called "seti" inside "DistributedComputing" in "Applications". Here's what I've come up with:

tell application "Terminal"
activate
do script with command "cd /Applications/DistributedComputing/seti"
do script with command "./setiathome"
end tell


When I run the script, a Terminal opens and the cd command is run, but then another window opens for the ./setiathome command. I want them both to run in the same Terminal window, one after the other. Anybody know what I'm doing wrong?
     
Moderator Emeritus
Join Date: Dec 2000
Location: College Park, MD
Status: Offline
Reply With Quote
Aug 20, 2002, 06:25 PM
 
just have it say
do script with command "cd /Applications/DistributedComputing/seti; ./setiathome"
My website
Help me pay for college. Click for more info.
     
rambo47  (op)
Mac Elite
Join Date: Apr 2000
Location: Denville, NJ.
Status: Offline
Reply With Quote
Aug 20, 2002, 10:26 PM
 
I copied and pasted your script into the Script Editor and got the error message

Syntax Error
A "script" can't go after this identifier.

where do script is highlighted.
     
   
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:04 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