URL Access Scripting - @ problem

Hi,
I am trying to build a script that will upload files to my servers. This script has a block of instructions like


Tell Application "URL Access Scripting"
upload this_file to this_server replacing yes with progress without binhexing
end tell

but, this script fails miserably if the server’s username contains a @ character, i.e., example: josh@server.com

this is because the upload line will contain two @, as in


upload this_file to "ftp://josh@server:password@server.com" replacing yes with progress without binhexing

you see? two @ on the same command!

another question is: how can I pass these two @ to the upload command of URL Access Scripting?

note: Safari will fail miserably too when trying to access an URL with two @ (I have reported this to apple)

Hi,

Have you tried URL encoding the user name? Try replacing the @ in the user name with %40

Best wishes

John M