Re: URL Access Scripting Problem
Re: URL Access Scripting Problem
- Subject: Re: URL Access Scripting Problem
- From: Ryan Thrash <email@hidden>
- Date: Fri, 23 Feb 2001 07:49:49 -0600
>
> I've got a very recent clean install of OS 9.0.4. Not a lot of extras added
>
> to the system (Palm Hotsync, Epson 880 driver and ATM Lite 4.61). When
>
> trying to post a file to an FTP server using URL Access Scripting, I get a
>
> error type 99. Any suggestions?
>
>
I haven't had any problems ... could you post the script?
An interesting note, this same script actually completely locks up another
computer when it runs on a few month old G4/Gigabit. If I had any clue as to
what a Type 99 error was (in plain English, that is) that would be helpful.
Also, any recommendations on a scripting editor that will step through this
line-by-line so I can see exactly where the error is coming from? Thx.
-- an alias reference to the uploadable file
set this_file to choose file
-- the FTP URL of the receiving directory, preceded with ,
the user name, colon, and password
set this_URL to "
ftp://username:email@hidden/somewhere/"
try
-- try connecting for 5 minutes
with timeout of 300 seconds
tell application "URL Access Scripting"
upload this_file to this_URL with progress
quit
end tell
end timeout
on error the error_message number error_number
tell application "URL Access Scripting" to quit
if the error_number is not -128 then
tell application (path to frontmost application as text)
beep
display dialog the error_message buttons {"Cancel"} default
button 1
end tell
end if
end try