Re: URL Access Scripting
Re: URL Access Scripting
- Subject: Re: URL Access Scripting
- From: Kevin Bradley <email@hidden>
- Date: Tue, 16 May 2006 15:27:29 -0500
On Tuesday, May 16, 2006, at 01:36 PM, Emmanuel wrote:
At first sight, you're not specifying *where* you are uploading to,
your variable "myURL" is quietly sleeping in AppleScript's memories
while "upload" is in need of it.
You're right, I posted a previous version of the script, instead of the current one. Here's the current one (which give an "extension failure" message:
set myFile to choose file with prompt "Select file to upload"
set myURL to "ftp://upload.comcast.net/"
tell application "URL Access Scripting"
upload myFile to myURL replacing yes with authentication and progress
end tell
display dialog "Done uploading " & name of myFile
Unsolicited advice: do not use URL Access Scripting. Use "curl"
instead, it's way more reliable. I use the following form to display
the stats, but you can chop out the end of the command.
do shell script "curl -T " & theXPath & " " & theRemotePath & " -w
'%{size_upload} bytes at %{speed_upload} bytes/s'"
theXPath is the [quoted form of the] posix path of the file to upload.
theRemotePath is your ftp://username:email@hidden/path/to/file
The directory must exist.
Thanks, I've been told similar. I'll try this if it appears that URL Access doesn't work. But I can't help thinking that URL Access would not exist if it did not work at all. In other words, there has to be some combination of circumstances, keywords, or voodoo that make it work, or it wouldn't exist.
Or am I being an idealistic fool?
--
Kevin
"Every saint has a past and every sinner has a future." -Oscar Wilde
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden