• 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
URL Access Scripting Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URL Access Scripting Error


  • Subject: URL Access Scripting Error
  • From: Jason Horn <email@hidden>
  • Date: Thu, 07 Dec 2000 15:04:48 -0500

I'm getting an error from a script that is supposed to download a page from
a website that requires authentication. The script is, in fact, lifted
right from the AppleScript Users Guide module for URL Access Scripting. I
simply changed the destination address to see if URL Access Scripting could
do the job. What I get is the following error:

"Error number: 500

URL Access Scripting got an error: An error of type
500 has occurred."

Anyone know what error number 500 is, where I could find out, or what the
heck is going on?

SCRIPT FOLLOWS

set the item_name to "Status.html"
set the parent_directory to "http://192.168.1.1/";
set this_URL to (the parent_directory & the item_name)
set the local_filepath to ((path to desktop folder as text) & the item_name)
set the timeout_amount to 1800
try
with timeout of timeout_amount seconds
tell application "URL Access Scripting"
download this_URL to file local_filepath with authentication and
relapcement
end tell
end timeout
on error error_message number error_number
if the error_number is not -128 then
tell application (path to frontmost application as text)
display dialog ("Error number: " & (error_number as text) & ,
return & return & ,
error_message) buttons {"OK"} default button 1 giving up
after 15
end tell
end if
end try
tell application "URL Access Scripting" to quit


Thanks,
Jason


  • Prev by Date: Re: Selecting entire line in BBedit.
  • Next by Date: Re: Scripting Sherlock
  • Previous by thread: Reading files in MacOS X AppleScripts (repost)
  • Next by thread: -48 error when printing PS to server volume
  • Index(es):
    • Date
    • Thread