Re: Scripting Terminal for simple FTP
Re: Scripting Terminal for simple FTP
- Subject: Re: Scripting Terminal for simple FTP
- From: Chris Janton <email@hidden>
- Date: Thu, 03 Apr 2003 07:21:59 -0700
On Tuesday, April 1, 2003, at 11:00 PM,
email@hidden wrote:
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'.
tell application "Terminal"
set myIndex to (get the index of every window whose name is "my test
window")
do script "ftp foo.com" in window myIndex
do script "user bar" in window myIndex
do script "xyzzy" in window myIndex -- this is the password
do script "ls P*" in window myIndex
do script "exit" in window myIndex
end tell
8)
----------------------------------
Chris Janton - face at CentosPrime dot COM
Netminder for Opus1.COM
_______________________________________________
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.