Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jaikob

macrumors 6502
Original poster
Jul 1, 2008
429
0
Freeland, MI
I am trying to develop an application based upon a command.' (Applescript)

The command has to be initialized first, so if i type in terminal:
/cmd

it will open the terminal program and display this:
Code:
You are now using application, please select your option, 1, 2, or 3.
[Default 2]

After the application has started, I can tell it what I want to do.

What I cant do is this: /cmd option 2
I cannot pass the parameters after the command.
I need a way to initialize the command, and then run a command inside of the command I called.
Here is my code:

Code:
on clicked theObject
    do shell script "/cmd"
    display dialog "Command Started"
end clicked

Thanks for the help.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.