• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: URL Access Scripting Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Critique a framework
  • Next by Date: Re: magic integer converter number 62?
  • Previous by thread: Re: URL Access Scripting Problem
  • Next by thread: Re: URL Access Scripting Problem
  • Index(es):
    • Date
    • Thread