Making AppleScript Curl FTP transfers faster.
tell application "Finder" to do shell script "curl -T /Users/FILE/PATH/HERE/filename.jpg ftp://username:password@domain.com/some/path/filename.jpg"
This works great. It is reliable. The issue is this. We are transferring thousands of files like this all day long, and it must be fast -- as fast as possible.
Right now it takes about 4 seconds each time to transfer even tiny files. I am guessing a major part of this time is spent opening and closing the FTP connection.
Is there some way to "permanently" keep alive the FTP connection curl is using to do this, so anytime something is uploaded to our FTP server via AppleScript/curl, the connection will already be active? Then, maybe uploads will be much faster.
If you have a suggestion how to do this, complimenting the method we are already using, or a suggestion of a better way to do this altogether, I'd enjoy learning it. Thank you.
iBook, Mac OS X (10.4.11)