Thanks..
Zach Manring
zmanring at mdpennysaver.com
Tue Feb 12 11:54:24 CST 2008
Thank you Cliff.. The one by on script works on the tower..
set the_folder_path to alias "PDFProofs:"
set days_old to 8
set this_date to current date
set weeks_old_in_seconds to days_old * days
set too_old_date to this_date - weeks_old_in_seconds
tell application "Finder"
activate
set fileList to (every file of folder the_folder_path whose creation
date comes before too_old_date)
repeat with i from 1 to count of fileList
set thisFile to item i of fileList
delete thisFile
end repeat
end tell
More information about the Creator
mailing list