rsync in one line

how can i get this in one line so that password prompt doesn’t stop the process?


set the_image to "test_image.gif"
tell application "Finder"
	do shell script "rsync -avz -e ssh user@host.com:myurl.com/" & the_image & " Desktop/dl_folder/" & the_image	
	delay 5
	do shell script "password"
end tell

note: i tried defining a password-file, but am not sure if I wrote the body of the file correctly, nor if the defined path is correct, so i’m not relying on that. any tips on that would be grand.

Why don’t you just setup SSH keys so you don’t have to enter a password at all.

Browser: Safari 412.5
Operating System: Mac OS X (10.4)

Why are you wrapping your code in a Finder tell block?

Jon