URL Access Scripting-download
URL Access Scripting-download
- Subject: URL Access Scripting-download
- From: Sovereign Diamonds <email@hidden>
- Date: Tue, 08 Jul 2003 06:19:27 +0100
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
1/ Strangely it will not work unless omit the 1st line & change it to:
set toFolder to "Macintosh HD:Users:dmm:Desktop:TestFolder:myfile.txt"
tell application "URL Access Scripting"
download "
ftp://username:email@hidden/myfile.txt" to toFolder
replacing yes with progress
end tell
tell application "URL Access Scripting" to quit
2/ I have to specify that the myfile.txt exists on my Mac using "toFolder"
although it does not
3/ "with progress" appears to be meaningless - there is no indication of
progress
4/ I got rather ambitious and tried numerous permutations attempting to
transfer a folder with no result whatsoever. One of my attempts:
set upLoadItem to "
ftp://username:email@hidden/TestFolder/"
set toFolder to "Macintosh HD:Users:dmm:Desktop:TestFolder:"
tell application "URL Access Scripting"
download upLoadItem to toFolder replacing yes with progress and download
directory
end tell
tell application "URL Access Scripting" to quit
I have no problem at all using the 'upload' function in URL Access Scripting
_______________________________________________
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.