Uploading Chosen Files with Cyberduck

Hi,
I am trying to upload a file of my choosing with Cyberduck. I can get most of it to work until trying to get the file which I chose. Any help would be greatly appreciated. The error:

“Cyberduck got an error: Can’t get file “/Users/boyd/Desktop/Test:test/0023IS.MP4” of browser 1.”

The script is:


tell application "Cyberduck"
	activate
	set theServer to "hectv.org	"
	set theUser to "xxxxx"
	set thePassword to "xxxxxxxx"
	set theProtocol to "ftp"
	set this_file to (choose file with prompt "Select the main shoot folder")
	set Filename to name of (info for this_file)
	set filePOSIXpath to POSIX path of this_file
	set theBrowser to (make new browser)
	
	tell (theBrowser)
		set encoding to "UTF-8"
		connect to theServer with protocol theProtocol as user theUser with password thePassword
		upload file filePOSIXpath
		disconnect
	end tell
	
end tell


Thank you very Much!

Hi,

you can do this without any help of an extra application


property ftpserverPath : "[url=ftp://ftp.myServer.com/path/to/folder/]ftp.myServer.com/path/to/folder/[/url]"
property user_name : "user"
property pass_word : "pass"

set this_file to (choose file with prompt "Select the main shoot folder")
set theSource to quoted form of POSIX path of this_file
set theDestination to quoted form of (ftpserverPath & name of (info for this_file))
do shell script "curl " & theDestination & " -u " & user_name & ":" & pass_word & " -T " & theSource

Hi Stefan,

Thank you for the help. I have run this and assume there is some permissions issue, but the error I got was:

“curl: (9) Server denied you to change to the given directory”

Thank you so much!


property ftpserverPath : "ftp://hectv.org/ftp26/"
property user_name : "user"
property pass_word : "pass"

set this_file to (choose file with prompt "Select the upload folder")
set theSource to quoted form of POSIX path of this_file
set theDestination to quoted form of (ftpserverPath & name of (info for this_file))
do shell script "curl " & theDestination & " -u " & user_name & ":" & pass_word & " -T " & theSource