Does FileList modification changes Folder items as well?

Hallo,
I would like to make a apple-script which creates a list of the files in a specific folder.

It then should loop through the list and remove all files not ending with .mov from the list (but not from the folder!!!)
and remove all files which were not created today from the list (but not from the folder).

It then should sort the files in the list by creation time. I then need to go through the list to locate a file, depending on its creation time.

The name of this file will be given to another process, which then continues with the task.

Can anyone give me some help with this.

I know how to get to the fileList. If I modified this file list, do I modify the files in the folder as well?

Thanks for the help

Regards

Ute

No.

Try something like this:


set theFolder to choose folder
set cd to date "Mittwoch, 24. Oktober 2007 11:43:28 Uhr"

tell application "Finder"
	set theFiles to sort (files of folder theFolder whose name extension is "mov" and creation date > ((current date) - (time of (current date)))) by creation date
	set Nm to ""
	repeat with oneFile in theFiles
		if creation date of oneFile is cd then
			set Nm to name of oneFile
			exit repeat
		end if
	end repeat
end tell

Notes: the sort command works only in Tiger.
The date string must fit to the format settings in System Preferences > International