bigtom

curl applescript from FM

Discussion created by bigtom on Jul 11, 2014
Latest reply on Jul 12, 2014 by bigtom

Having a little trouble.

 

This script runs perfectly, but curl seems to have the ability to upload multiple files simultaneously and I need to upload 3 files from the client.

"do shell script "curl -T " & $path_unix & " ftp://username:password@sitename.com/upload/password@sitename.com/upload/" & $file_name & """

 

 

For the multiple upload the correct $filename is already included in the $path_unix(_xxx) and the correct values have been verified in the data viewer. I have tried two different ways. I think I am having some sort of syntax problem and I cannot figure it out. I even tried using {} in there at one point.

 

"do shell script "curl -T " & $path_unix & "," & $path_unix_150 & "," & $path_unix_90 & " ftp://username:password@sitename.com/upload/password@sitename.com/upload/" & """

 

"do shell script "curl -T "" & $path_unix & "," & $path_unix_150 & "," & $path_unix_90 & "" ftp://username:password@sitename.com/upload/password@sitename.com/upload/" & """

 

Any ideas?

Outcomes