AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
- Subject: AppleScript to erase one mounted volume if it's modification date is date is greater than one day?
- From: Jim Kessler <email@hidden>
- Date: Thu, 20 Jun 2013 16:22:40 -0400
Here's the scenario: a Mac with a hard drive is partitioned into two volumes, one of which is the startup drive (Macintosh HD). The second volume (Temporary Drive) holds data files which are non-critical. I'd like to compose an AppleScript that compares (running at startup, through a login item) the current date to the modification date of the second volume, and erases the second volume if the modification date is more than a day (or 24 hours, or whatever measure of time necessary) older than the current date. Is this easily accomplished through AppleScript? (Running 10.8.4.)
Thanks!
Jim
_______________________________________________
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