Hi Folks,
do you know wheter there is an osaxen for ftp - or does anybody
has some experience with creating a ftp client with as?
Thanks for your input,
Stefan
Hi Folks,
do you know wheter there is an osaxen for ftp - or does anybody
has some experience with creating a ftp client with as?
Thanks for your input,
Stefan
Hi Stefan,
if you only want to read or write data from/to a FTP Server,
the simplest solution is using the curl command in Terminal
Hi Stefan,
thanks a lot for your help! I have been playing with it - and came to the first problem! How can I make
the output into a nsbrowser?
if name of theObject is "connect" then
set ftpa to contents of text field "host" of drawer "settings" of window "main"
set pass to contents of text field "pass" of drawer "settings" of window "main"
set user to contents of text field "user" of drawer "settings" of window "main"
set connect to "curl -l ftp://" & user & ":" & pass & "@" & ftpa & return
do shell script connect
set contents of browser "browser" of window "main" to connect
end if
thanks for your help!
Stefan
Hi Stefan,
The URL should have the format “ftp.mydomain.com/path/”
Assuming that the variable ftpa contains the URL, try the following syntax:
set connect to "curl -l " & ftpa & " -u " & user & ":" & pass
set contents of browser "browser" of window "main" to (do shell script connect)
remove the return at the end, the line includes a return.
Maybe that’s the problem