RE: URL access scripting
RE: URL access scripting
- Subject: RE: URL access scripting
- From: "Wadson, David" <email@hidden>
- Date: Thu, 13 Dec 2001 11:46:58 -0500
The download command requires a file specification, not just the location.
There is an AppleScript Guidebook at www.apple.com/applescript that fully
explains URL Access Scripting and has plenty of examples...
>
> OK, I am saying:
>
>
>
> tell application "URL Access Scripting"
>
> download "ftp://ftp.MacOSphere.com/test.txt" to desktop
>
> end tell
>
>
>
> But getting error "Can't make some data into the expected type"
>
>
>
> What's wrong?
>
>
>
Well, I haven't used URL Access Scripting myself, but taking a quick look
>
at
>
its dictionary I don't see 'desktop' as one of its keyword parameters.
>
Assuming (?) that the URL string is of a type that it likes, how about
>
trying something that will return a file specification as its 'to'
>
parameter
>
says it requires? Will this work?
>
>
download "ftp://ftp.MacOSphere.com/test.txt" to (path to desktop)