File list with properties.

Long time listener, first time caller.

I’m trying to catalog our FTP site in such a way that I can import the data to Filemaker for posting on intranet.
I can use Fetch’s Automator actions which ends up being a comma delimited textfile (which then gets imported), but I’d rather use applescript on a mounted FTP share if possible.

I’m trying to return the path as well as date/time… this way I’ll be able to show files that arrived in the last ‘x’ hours/days etc.
I can do it so simply and get a list of filenames returned but I simply need more data about the file.

Any pointers would be greatly appreciated.

Do you mean the date and time embedded into the file attributes like Creation Date and Modification Date, or do you mean the date and time that you actually pull the file data from the FTP site?

Using AppleScript, the info for command may give you what you want:

set a to choose file
set b to (info for a)
{(b's modification date), (b's creation date)}

-->{date "Tuesday, August 19, 2008 1:30:57 PM", date "Tuesday, July 8, 2008 1:44:11 PM"}