Your best friend for file transfer.Fetch
applescript (3 posts)
- Started 12 years ago by mike-l
- Latest reply 12 years ago from mike-l
i need an applescript for uploading multiple files to a remote directory. I tried recordig it but it did not work.
what i need is kind of an applescript version of the ftp-command "mput *".
Jim Matthews Administrator
Here's a script that should work. You have to change the first line to refer to the place where you want the files uploaded.
property destURL : "ftp://myuserid:@myhost/mydirectory/"
set srcFolder to choose folder with prompt "Pick a folder of files to upload"
set srcFiles to list folder srcFolder
set srcFolderPath to (srcFolder as string)
tell application "Fetch 4.0.3"
repeat with curSrcFile in srcFiles
set fullPath to (srcFolderPath & curSrcFile)
put into url destURL item alias fullPath
great. thank you very much for your quick help.
- Page 1
This topic has been closed.