595 Views 3 Replies Latest reply: Mar 3, 2009 2:22 PM by BenChase
The problem is that you're comparing the 'day' of each element, so you will have that problem.
Instead, consider the entire date:
tell application "Finder"
set theFiles to every file of folder ProofsOutFolder
repeat with aFile in theFiles
set fileModDate to modification date of aFile
set DaysOut to ((current date) - (fileModDate)) div days
if DaysOut ≥ NumDays then
display dialog "File is " & DaysOut & " days old."