Re: URL Access Scripting
Re: URL Access Scripting
- Subject: Re: URL Access Scripting
- From: Eric Schult <email@hidden>
- Date: Mon, 10 Dec 2001 14:19:51 -0600
>
>> On 12/7/2001 7:43 PM, "Giuliano Gavazzi" <email@hidden> wrote:
>
>> Are you saying that URL Access does NOT send the email address from the
>
>> Internet control panel when you use a URL such as ftp://ftpserver.com/?
>
>
>
> When I use that syntax, it produces a "program error" dialog. My only
>
> success has been using the full string:
>
>
>
> "ftp://username:email@hidden/"
>
>
It shouldn't produce any error. What is the exact text in the "program
>
error" dialog?
>
On OS 8.6 machines, I get: "Could not run the script because of a program
error." On 9.2, I get either the above or: "URL Access Scripting got an
error: An error of type -3162 has occurred.", or "Network file permission
error."
The errors do not occur when I add "username:password@" before
"ftpserver.com"
The boiled-down syntax I'm using follows:
property ftpServer : "ftpads.journaltimes.com"
property ftpPath : ""
property ftpString : (("
ftp://" & ftpServer & "/" & ,
ftpPath) as string)
on run
tell application "Finder"
set localFile to choose file with prompt "Choose a file to send to
the Dropbox."
end tell
tell application "URL Access Scripting"
upload localFile to ftpString replacing yes with progress
end tell
end run