i’m trying to make a script to automate uploads using fetch. i’ve gotten it to work where the script uploads a folder on the desktop called “Upload”. however it copies the entire directory and its contents to a directory on the ftp server called “Upload”
i would rather that it go in and just copy all the files over to the root directory of the server but i’m not sure how to go about it. how do i make my “Uploads” variable a proper alias of all the files in said directory? here is my script:
set Uploads to alias ((path to desktop) as string) & “Upload”)
set login to text returned of (display dialog “Please enter your login name, all lower case with no spaces.” buttons {“Submit”} default answer “”)
if (login != “”) then
set myURL to (“ftp://” & login & “:” & login & “@ftp.server.com”)
tell application “Fetch 4.0.3”
activate
try
put into url myURL item Uploads
display dialog “FTP successful!” buttons {“Hooray!”}
quit
on error
display dialog "FTP was not successful. Please try re-running the script and check your login name. "
quit
end try
end tell
thanks in advance,
matt