scriped ftp file upload in osx

I want to upload a pdf file using an applescript in OSX.
I think I can’t tell the finder to do so (can only connect in read only mode) but the terminal should do isn’t it? Or do I need a seperate FTP client?
Does anyone know a simple (and free?) client than can be scripted to do so or can sync two folders automaticty?

Can anyone help I am a script newby.

Frank

The terminal can perform FTP tasks and it’s free. There’s a good article in the latest MacAddict on the subject.

In addition, any commands you do in the terminal can also be done via AppleScript with the ‘do shell script’ command.

Is this macaddict article on the web or only in print?
Does anyone know a “terminal for dummies” website?
Or can you explain how to connect en upload with the terminal.

Thanks for the help
Frank

Hi Frank, the Terminal app has a built in manual. You can access it by typing the word “man” followed by the name of a “command” you want to learn more about.

man ftp

Will open the manual for ‘ftp’.

man tcsh

Will open the manual for the tcsh shell.
When you are reading a manual window you can search for keywords by typing a slash plus the keyword

/ftp

The good folks over at OSX FAQ have a great tutorial for learning Unix from beginner to advanced.

This BBS has a thread on this (searching for ftp upload) at http://bbs.applescript.net/viewtopic.php?t=3507&highlight=ftp+upload

Also, I’ve got a simple open-source ftp upload handler you could use at http://danshockley.com/codebits.php The basic idea is to use do shell script to send a curl command that does all the work for you.