3 Replies
Last post:
Oct 24, 2007 3:53 AM by
Dan Frakes
Re: Automatically Delete Old Files in Directory
You can write your own AppleScript to perform the function. You may even be able to create a workflow in Automator that performs the task.
“Cannot run out of time. There is infinite time. You are finite. Zathras is finite. This is wrong tool.” 2.3GHz Power Mac G5/8GB/2x1TB HDD/OS X 10.4.11/30-inch ACD, 60GB iPod (Color)
“Cannot run out of time. There is infinite time. You are finite. Zathras is finite. This is wrong tool.” 2.3GHz Power Mac G5/8GB/2x1TB HDD/OS X 10.4.11/30-inch ACD, 60GB iPod (Color)
Unfortunately, Automator (at least as of 10.4; maybe it'll be different in 10.5) lacks any direct ability to either select files based on date or to delete files. However, you can use Automator to run shell scripts, so a solution is possible.
I wrote up what I did in this macosxhints.com hint. It's not necessarily for a Terminal beginner, though it's really not bad. There are also some alternatives in the comments, one of which, Hazel, is a pure GUI solution that helps you create actions for folders to run automatically.
Either the linked hint or Hazel should help you accomplish what you want to do.
-rob.
Collecting email for a Macworld project: ineedalearjet@gmail.com
I wrote up what I did in this macosxhints.com hint. It's not necessarily for a Terminal beginner, though it's really not bad. There are also some alternatives in the comments, one of which, Hazel, is a pure GUI solution that helps you create actions for folders to run automatically.
Either the linked hint or Hazel should help you accomplish what you want to do.
-rob.
Collecting email for a Macworld project: ineedalearjet@gmail.com
- PCW Network
- MacUser
- Mac OS X Hints
- iPhone Central
- PC World
- PCW Business Center
- About Macworld
- Advertise
- Macworld Expo
- MacMania
- Terms of Service Agreement
- Privacy Policy
© Jive Software


