Re: On My Mac- FTP checking
Re: On My Mac- FTP checking
- Subject: Re: On My Mac- FTP checking
- From: Eric Geoffroy <email@hidden>
- Date: Wed, 03 Jun 2009 09:41:45 -0700
- Thread-topic: On My Mac- FTP checking
Here's an idea- broad view.
A stay-open script runs and polls the contents of the ftp site and builds a
report of filenames with timestamps, or filenames and file sizes. Then after
a set number of minutes, the script makes second pass and creates a second
report. The two are compared and the files that haven't been modified are
added to a list and acted upon. After that you either remove the processed
files from the report, or start a new empty report.
For generating the report, I use ncftp on the command line, a very powerful
and handy FTP utility. It is the engine that Transmit runs on. ncftp
contains some other utilities, one of which is ncftpls which is designed to
run in scripts. Ncftpls is how I get FTP directory reports for mod dates and
size.
http://www.ncftp.com/ncftp/
http://www.ncftp.com/ncftp/doc/ncftpls.html
- Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden