Cyberduck doesn't send complete files
Cyberduck doesn't send complete files
- Subject: Cyberduck doesn't send complete files
- From: Dan Doughtie <email@hidden>
- Date: Wed, 19 Nov 2008 04:34:11 -0500
- Thread-topic: Cyberduck doesn't send complete files
I have a fairly simple script that follows Cyberduck's own Applescript
examples. It is moving ZIP files . On my home network it moves the complete
files (often 1 or 2 megs) to the FTP site. But on the company network I get
ZIP files delivered that are much smaller and can¹t be unzipped because they
aren't complete. I assume that the script isn¹t waiting for Cyberduck to
finish the transfer before moving on to the next step which is disconnect
then quit.
I added a delay and it seems to have increased the file size but they still
are the original size and won¹t open.
Is there something that can force Cyberduck to wait for the transfer to
complete? I can keep increasing the delay but then I run the risk of
unnecessary waiting around when the process completes quicker than expected.
I might just give up and use CURL in a command line script.
Here's the script
set theServer to "ftp.xxxx.com"
set theUser to "xxxx"
set thePass to "xxxx"
set theProtocol to "ftp"
set theUploadFolder to "PC"
set myoutputFile to myoutputFile as alias
with timeout of 300 seconds
tell application "Cyberduck"
set theBrowser to (make new browser)
tell (theBrowser)
--set encoding to "UTF-8"--I assume I don't need this since I'm
moving ZIP files
connect to theServer with protocol theProtocol as user theUser
with password thePass with initial folder theUploadFolder
upload item myoutputFile
--I added this delay and it seemed to grow the file size.
delay 5
disconnect
end tell
quit
end tell
end timeout
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden