Your best friend for file transfer.

Upload all files in a folder (3 posts)
This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
- Started 19 years ago by timothyt
- Latest reply 19 years ago from timothyt
-
timothyt Member
-
Jim Matthews Administrator
This should work:
tell application "Finder"
set fileList to every file of folder "Macintosh HD:Users:timothyt :Desktop:test2:"
end telltell application "Fetch 4.0.3"
repeat with oneFile in fileList
put into url "ftp://userid :password@hostname/path/" item (oneFile as alias)
end repeat
end tellThe "oneFile as alias" part is needed because the Finder will give back a list of file references, while Fetch wants to deal with aliases.
Thanks,
Jim Matthews
Fetch Softworks[This message has been edited by JimMatthews (edited 07-23-2003).]
-
timothyt Member
Works like a charm, thanks for the help and the quick response.
Tim
- Page 1
Topic closed
This topic has been closed.
I am new to AppleScripting.
I am looking to create a script that uploads every file of a folder. Here is what I have tried:
tell application "Fetch 4.0.2"
activate
geturl "ftp://xxxxx:yyyyyy@ftp.xxx.com"
get {every file of the folder, "Macintosh HD:Users:timothyt:Desktop:test2:"}
copy selection to transfer window "ftp.xxx.com"
end tell
When I run this, I get an invalid key form error.
What should I change?
Thanks
Posted 19 years ago #