Got on for you all!
Zach Manring
zmanring at mdpennysaver.com
Tue Feb 12 09:11:51 CST 2008
Ive made this script to remove files after 8 days, it works fine but in a
looping situation and there is nothing for it to delete it apple errors
out.. I would like to make it a "if, then, else statement" at the botom for
the delete. Any suggestions. Also I am having issues with postscripting out
of a powerpc tower in Creator 8.0.2, first line is com.apple
--
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
tell (every file of folder the_folder_path whose creation date comes
before too_old_date)
delete
end tell
end tell
--
More information about the Creator
mailing list