Re: Is there a shell tool to find folders greater than a given size?
Re: Is there a shell tool to find folders greater than a given size?
- Subject: Re: Is there a shell tool to find folders greater than a given size?
- From: Peter Baxter <email@hidden>
- Date: Fri, 29 Feb 2008 16:50:33 +1100
Why not use AS as this is a site for such scripts?
tell application "Finder"
get the name of every folder whose physical size is greater than
5.74971904E+9
end tell
On 29/02/2008, at 3:32 PM, Mark J. Reed wrote:
The size of a folder (beyond the physical size of its directory list)
is not readily available in the shell. Typically you use the "du"
(disk usage) command to add up how much space a folder's contents take
up. You could pipe the result through awk to find the folders whose
size exceeds your threshold value...but you'd still have the list
management problem. I think I'd stick with the Finder on this one.
Peter Baxter
email@hidden
There is hardly anything in the world that some man can't make a
little worse and sell a little cheaper, and the people who consider
price only are this man's lawful prey.-- John Ruskin
_______________________________________________
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