Using applescript to run MacSFTP to FTP files

I tried to record a script to use MacSFTP Carbon (for OSX) to upolad files to a server for backup. When I run the script the application opens, makes a connection to the server and goes to the correct folder. Then the script gets a hang up when it attempts to send the file. Ther error message refers to a problem with the Putfiles command.

Thanks for your input,