FindFile
FindFile
- Subject: FindFile
- From: Joe <email@hidden>
- Date: Mon, 04 Dec 2000 10:33:55 -0600
I'm trying to write a script that will find all files in a certain folder
that have creation dates that are older than 5 days before the current date.
I've tried writing the script using the FindFile addition but I keep getting
this errror " because *Ox//* the original item cannot be found 32768029"
Here is the script, can someone let me know what I'm doing wrong or if there
is a better way of doing this:
tell application "Finder"
set sourceFolder to choose folder with prompt "Select a folder to
search:"
set destFolder to choose folder
set ayearago to (current date) - 5 * days
set theList to FindFile in_folder sourceFolder date_modified_is_before
ayearago result_type "alis"
try
move (every item of theList) to destFolder
on error errtext number errnum
display dialog errtext & space & errnum
end try
end tell