How to use "Fetch" application to send a file

Hi,all I am a newer to AppleScript. I want to get some help from everyone. Would you tell me how to write an AppleScript to send a file to my remote server use “Fetch” application.When I use “fetch alias” command and “put into” command, and run it. I will get an error message “Fetch got an error:-48(duplicated file name )”. If I ignore the erroe anf run again, everything is OK. Would you tell me how to solve it? Any suggestion, direction, and experiences would be very very appreciated. Thanks a lot!!!

: Hi,all I am a newer to AppleScript. I want to get some help from everyone.
: Would you tell me how to write an AppleScript to send a file to my remote
: server use “Fetch” application.When I use “fetch
: alias” command and “put into” command, and run it. I will
: get an error message “Fetch got an error:-48(duplicated file name
: )”. If I ignore the erroe anf run again, everything is OK. Would you
: tell me how to solve it? Any suggestion, direction, and experiences would
: be very very appreciated. Thanks a lot!!!
If you have a transfer window open in Fetch, something like this should
work.
– Begin Snippet –
tell application “Fetch”
put into transfer window serverName item theFile
end
– End Snippet –
– Where serverName is the name of the transfer window and theFile is a
– reference to a file.
Rob J