Re: AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
Re: AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
- Subject: Re: AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
- From: 2551 <email@hidden>
- Date: Sat, 22 Jun 2013 16:48:16 +0700
On 22 Jun 2013, at 16:25, Kaydell Leavitt < email@hidden> wrote: That reminds me, I originally had a really bad feeling about writing a script that can erase a volume.
I appreciate that. But like all lethal weapons, responsibility for their use lies in the hands of those who use them. ;-)
the Finder isn't updating this volume's modification date.
This is just puzzling to me.
I simply wouldn't trust Finder for something like this.
As long as we're changing the specification,
I don't see that we're changing 'the specification'. The task is to accurately find the last time the volume was accessed. We're discussing different ways to do that, is all. and when the volume was starting to get full, this daemon would erase the oldest files.
What do you think about this idea?
I think Apple beat you to it. :) That's what Time Machine does, as does the Archiving feature in apps like Carbon Copy Cloner. But this IS changing the spec'. I'm not at all certain that what the OP wants/ wanted was a backup script. Back to the task at hand - I think you've got the answer more or less wrapped up in your script, it's just a matter of getting the last access time right. I'm working on something else at the moment, but will have a further think about this later today or tomorrow. I'm sure there's a simple solution in bash somewhere, it's just avoiding me right now. Will do some digging in my books later.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden