Re: URL Access problems
Re: URL Access problems
- Subject: Re: URL Access problems
- From: Malcolm Fitzgerald <email@hidden>
- Date: Fri, 17 Aug 2001 09:53:01 +1000
set u to "
http://www.asauthors.org/index.html"
set scratch to "rubbish.html"
tell application "URL Access Scripting"
(download u to file scratch replacing yes with progress)
-- specify type of scratch using "file"
quit
end tell
At 10:12 PM +0200 16/8/01, Brennan Young wrote:
Hi folks.
I've boiled down a much more complex script to this, which is not working.
Any ideas why?
set scratch to (new file)
set u to "http://brennan.young.net"
tell application "URL Access Scripting"
(download u to scratch with replacing and progress)
end tell
It chokes on the download line complaining that 'some data was the wrong
type', but I can't see what that might be. The 'to' parameter should be a
file spec, and that's what's returned by 'new file'. All the other
parameters are constants.
Help!
--
_____________
Brennan Young
Artist, Composer and Multimedia programmer
mailto:email@hidden
"What the guy is supposed to do is feel uncomfortable and when he has bugs,
suspect the problem is DR-DOS and then go out and buy MS-DOS or decide not
to take the risk for the other machines in the office."
-Bill Gates
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users
--
Malcolm Fitzgerald
Database Manager
The Australian Society of Authors
ph: 02 9318 0877 fax: 02 9318 0530 email: email@hidden
www.asauthors.org www.asauthors.org/award www.asauthors.org/web_of_poets