URL Access Scripting Error
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