Re: Scripting Terminal for simple FTP
Re: Scripting Terminal for simple FTP
- Subject: Re: Scripting Terminal for simple FTP
- From: Joshua See <email@hidden>
- Date: Wed, 2 Apr 2003 08:28:32 -0600
On Tuesday, April 1, 2003, at 05:06 PM, Andrew Oliver wrote:
Fair point, Paul, although your approach is more along the lines of
stringing multiple commands together rather than being able to
interact with
each command while it's running.
In this specific case, the question related to controlling the ftp
connection, and that can't be done, even with semi colon-separated
commands
passed in the 'do shell script'.
Keep in mind that the original question was regarding "do script" in
the Terminal, not the "do shell script" addition. Thus, the following
should work.
tell application "Terminal"
activate
set ftpwin to front window
do script "ftp ftp.someserver.com" in ftpwin
do script "anonymous" in ftpwin
do script "foo@bar" in ftpwin
end tell
In practice, it can work, but isn't too reliable. Barring some unusual
circumstance, UAS, curl, or commands that transfer files with a single
line, such as scp, are a better approach.
Sincerely,
Joshua See
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.