Subject: | |
From: | |
Reply To: | |
Date: | Wed, 13 Jun 2007 21:53:23 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Thanks Mark,
I tried and got the same error as with most of the the trials I had
with curl
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0
curl: (9) Uploaded unaligned file size (0 out of 270263 bytes)
Thanks
Andreas
On 13.06.2007, at 21:37, Mark Lively wrote:
> global myUrl
> set myUrl to "[log in to unmask]" target="_blank">ftp://user:[log in to unmask]"
> sendfile(choose file)
>
> on sendfile(AFile)
> tell application "Finder" to set aname to name of AFile
> if aname ends with ".txt" then
> do shell script "curl -B -T \"" & POSIX path of AFile & "\" \"" &
> myUrl & aname & "\""
> else
> do shell script "curl -T \"" & POSIX path of AFile & "\" \"" &
> myUrl & aname & "\""
> end if
> end sendfile
>
> On Jun 13, 2007, at 12:13 PM, Andreas Kiel wrote:
>
>> Hi all,
>>
>> I'm just trying to create a shell script using "ftp" to transfer
>> files from out an AppleScript. I do succeed to log in correctly to
>> the remote server but I can' put files there.
>> I search the web but can't find any examples of scripts which
>> would work with the "do shell script"
>> I found one AppleScript which uses curl, but that didn't work either.
>>
>> Maybe somebody got an idea.
>>
>> Thanks
>> Andreas
>>
Andreas Kiel
Spherico
Nelkenstr. 25
D-76135 Karlsruhe
Tel.: +49 (0)721 183 9753
eFax: +1 650 897 8094
eMail: [log in to unmask]
http://spherico.com/filmtools -- workflow tools for FCP
|
|
|