Subject: | |
From: | |
Reply To: | |
Date: | Wed, 13 Jun 2007 22:07:50 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi Mark,
Just tried another ftp server than th two I tried all day and it
works - that's fantastic
Many Thanks again
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
|
|
|