Re: URL Access - Upload???
Re: URL Access - Upload???
- Subject: Re: URL Access - Upload???
- From: Michael Turner <email@hidden>
- Date: Wed, 1 May 2002 16:04:52 -0400
Chris,
Here is a tiny sample. A note of caution: Simon is right. URL Access
sucks. It timeouts often & easily & it causes general agony. For
example, see Jolly Roger's <rant> about URL Access on Feb 14th. This
script worked for me, on 10.1.4.
set send_file to (choose file)
set send_file to send_file as string
set the target_URL to
"
ftp://username:email@hidden/Users/mt/Public/" -- Important
Note: _absolute path_ at the end.
tell application "URL Access Scripting"
upload file send_file to target_URL without binhexing
end tell
URL access
scripting...
Mac OS X 10.1.4 uploading to my own laptop or a remote unix server....
Don't use URL Access Scripting, it's poo. Use do shell script and curl.
Reasonably solid (although I get malloc errors when running curl from
the command line to upload files - can be worked around quite easily
and is then solid).
Get in touch if you need more.
HTH
Simon Forster
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.