PDA

View Full Version : Applescript interactive shell


bfc
05-05-2002, 12:48 AM
Is there a way in Applescript to interact with command line applications? IE: if i wanted to automate an ftp connection, so i'd do something like do shell ftp and then have the script put in my user and pass and change to my html dir. Jusf for an example of what i'm talking about.. Is this possible? I know in RealBasic you can set the sell command to interactive and pass commands along while the shell program is running but in applescript it just freezes the program untell the shell program ends.

Thanx

mervTormel
05-05-2002, 01:13 AM
no, i think this is the wrong approach. what you want is to have an interactive applescript that gathers the parameters for the call to a non-interactive ftp session.

lemme know what you think about that.

bfc
05-05-2002, 01:20 AM
for some stuff that works, but for i want to have buttons that pass commands to a running command line program, and thouse commands cant be passed threw variables when you startup the program. That ftp was just a hypothetical situation.