Re: URL Access Scripting-download
Re: URL Access Scripting-download
- Subject: Re: URL Access Scripting-download
- From: John Delacour <email@hidden>
- Date: Tue, 8 Jul 2003 14:39:42 +0100
- Mac-eudora-version: 6.0a26
At 6:19 am +0100 8/7/03, Sovereign Diamonds wrote:
For a few frustrating days I have been banging away at what I thought would
be a a rather simple exercise. I have searched all 123 email references
within the list on the Apple site & problem is common, but there does not
seem to be an definitive answer. to The non-functioning script is:
set upLoadItem to "ftp://username:email@hidden/myfile.txt"
set toFolder to "Macintosh HD:Users:dmm:Desktop:TestFolder:myfile.txt"
tell application "URL Access Scripting"
download upLoadItem to toFolder replacing yes with progress
end tell
tell application "URL Access Scripting" to quit
The dictionary gives tha answer quite clearly:
download : Downloads a specified URL to a specified file
download string -- URL to download from
to file specification -- the downloaded file location
set f to "
http://www.google.co.uk/index.html"
set flocal to "" & (path to desktop) & "INDEX.HTML" as file specification
tell application "URL Access Scripting" to download f to flocal
--> file "dx:Users:jd:Desktop:INDEX.HTML"
You are trying to download to a _string_, which is meaningless.
JD
.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.