Re: URL Access Scripting
Re: URL Access Scripting
- Subject: Re: URL Access Scripting
- From: Jolly Roger <email@hidden>
- Date: Mon, 10 Dec 2001 15:59:12 -0600
On 12/10/2001 2:19 PM, "Eric Schult" <email@hidden> wrote:
>
>>> 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"
As far as I can tell, ftpads.journaltimes.com is NOT an anonymous FTP
server, which would explain why you cannot connect to it using a standard
anon FTP URL. Anonymous FTP servers expect a username of "anonymous".
I notice your first post on this subject contained a script where you
declared the following property:
property userName : "tjt"
... and you go on in the script to use the userName property like so:
tell application "URL Access Scripting"
upload localFile to (("
ftp://" & userName & ":" & ftpPassword & "@" &
ftpServer & "/" & ftpPath) as string) replacing yes with progress
end tell
You are not logging in anonymously. You are logging in as "tjt". It's
confusing to me that an FTP server would expect an email address as a
password for a non-anonymous account.
As a matter of fact, I just successfully logged into the server with
Interarchy under the "tjt" account using a password of "whatever".
Try this script and see if it works:
-- begin script
set ftpURL to "
ftp://tjt:email@hidden/"
set localFile to choose file
tell application "URL Access Scripting"
upload localFile to ftpURL replacing yes with progress
end tell
-- end script
JR