I am unable to script the Terminal command
open 192.168.10.50 2021
Nothing happens in the following script after the ftp command, just the Terminal window with the ftp prompt. The second do script command does not execute.
tell application “Terminal”
activate
set w to window frontmost
delay 2
do script “ftp” in w
delay 2
do script “open 192.168.10.50 2021” in w
delay 5
do script “XXXXXX” in w
delay 2
do script “YYYYYY” in w
delay 1
do script “passive” in w
delay 1
do script “binary” in w
delay 1
do script “cd outbound” in w
delay 1
do script “lcd desktop” in w
delay 1
do script “mget *” in w
end tell
I tried to substitute
ftp 192.168.10.50 2021
for the first two do script commands and a connection occurs but again the now second do script command(do script “XXXXXX” in w) does not execute. Have I changed some setting in Terminal or Network that is preventing the second do script command from working? Is there a workaround?
Thank you
Douglas McKibbin
Model: G4 Powerbook
AppleScript: 2.1.1(81) v 1.10.7
Browser: Safari 522.12.1
Operating System: Mac OS X (10.4)