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 17:27:15 +0700
I think the 'stat' command is what we want.
e.g,
stat /Volumes/Temporary\ Drive
That'll return three dates. The first one seems to be the last read date for the disk. The second one is the last modification date (the same as the one finder returns in Kaydell's Applescript).
You just need to wrap this in a 'do shell script' and then strip the first date off the result for comparing against the current time.
Best
Phil http://applehelpwriter.com |
_______________________________________________
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