Uploading text document to a website

Has anyone ever come across this problem? I am attempting to upload a text file to my website when my mac starts up for the day. I am using Applescript, URL Access Scripting in an OS 9 environment.

The file I would like to automatically upload is called “text.txt” and is in my system folder.

I am trying to construct a MAC OS9 applet to FTP the text file, when the applet is started in my startup items folder.

And for some reason, the code I’ve knocked together doesn’t work. Any ideas?

set x to (“Mac/System%20Folder/text.txt”)
return x
set y to (“ftp://user:password@www.webaddress.com/folder/”)
return y
tell application “URL Access Scripting”
activate
upload x to y replacing yes with progress and authentication without binhexing
quit
end tell

Does this work?

set x to "Mac:System Folder:text.txt"
set y to "ftp://user:password@www.webaddress.com/folder/"

tell application "URL Access Scripting"
	upload file x to y replacing yes with progress and authentication without binhexing
	quit
end tell

– Rob