The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   OS X Developer (http://hintsforums.macworld.com/forumdisplay.php?f=27)
-   -   Automate FTP download (http://hintsforums.macworld.com/showthread.php?t=19923)

photodart 08-09-2004 01:32 PM

Ok - sorry - I'll esplain.
I need to download the LOG file of a Windows IIS web server, they are on a single place (The directory name is /logs/), the file have different name (ex. -> ex090804) but they have the same extension (.log)
I have only FTP access with username and password.
I need absolutely to delete them after download (the server doesnt do this).
Thank you very much

krdzine1 08-27-2004 09:17 PM

You can try this... i found it a while back but never used. I think it will work for you.
-- begin user defined variables --
set myUserName to "username"
set myPass to "password"
set ftpServer to "ftp.server.com"
set initialPathOnFTPserver to "/" -- directory to download
set local_folder to "path/to/files/"
-- end user defined variables --

tell application "Transmit"
activate
set newWindow to make new document at end
tell newWindow
set your stuff to local_folder
connect to ftpServer as user myUserName with password myPass ¬
with initial path initialPathOnFTPserver with connection type FTP
download item initialPathOnFTPserver
disconnect
end tell
quit
end tell


All times are GMT -5. The time now is 06:08 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.