Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mattpreston11

macrumors 6502a
Original poster
Nov 9, 2007
731
0
Hello, Hopefully someone can help me with my applescript.

I am trying to upload a txt file to FTP with a simple script. I have done alot of research but cant get the file to upload correctly. The script is supposed to create the file, put it on the desktop, then copy the file to the FTP.

Here is my script:


do shell script "date >> $HOME/Desktop/Hannah.txt"
do shell script "curl -T $HOME/Desktop/Hannah.txt ftp://a8378467:mypassword@http://cas.site88.net//public_html/Hannah.txt > /dev/null 2>&1 &"

Any help appreciated..

Thanks

Matt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.