• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there a shell tool to find folders greater than a given size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: demski <email@hidden>
  • Date: Fri, 29 Feb 2008 12:45:00 +0100

Hey Gary!
I tried this out, just because I was interested, does it not do what you wanted?


tell application "Finder"
set bigones to {}
set vols to {}
set bigones to get the name of every folder whose physical size is greater than 256000
repeat with fol in bigones
set end of vols to {name of folder fol as text, physical size of folder fol as real}
end repeat
set output to ""
repeat with i in vols
set output to output & (item 1 of i & tab & item 2 of i & return)
end repeat
display dialog output
end tell
result:


Macintosh HD	1,49146238976E+11
DeskToy Installer	8,822784E+6
message2net	2,94912E+6
Kunden_X	1,09971136512E+11
PORSCHE	1,09953048576E+11
Groups	2,3840083968E+10
Best	5,18342656E+9
bilder vom handy	3,473408E+6
Chapter 4 Scripts Final	1,4864384E+7
quickstart_samples	7,684096E+7
talkline_angebote	5,98016E+5
vid0191	4,9152E+5


Am 29.02.2008 um 06:50 schrieb Peter Baxter:

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 (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40unter-anderem.com
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden


mit besten Grüssen Kind regards

demski


die Anderen · digitale mediendienstleistungen Bellealliancestrasse 58 b 20259 Hamburg

fon +49 (0) 40 41 26 61 81
mob +49 (0) 172 40 70 319

Hinterhof der Firma Hertz & Selck



_______________________________________________
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
References: 
 >Is there a shell tool to find folders greater than a given size? (From: "Gary (Lists)" <email@hidden>)
 >Re: Is there a shell tool to find folders greater than a given size? (From: "Mark J. Reed" <email@hidden>)
 >Re: Is there a shell tool to find folders greater than a given size? (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: newbie help - parsing pathnames to rename files
  • Next by Date: Re: Is there a shell tool to find folders greater than a given size?
  • Previous by thread: Re: Is there a shell tool to find folders greater than a given size?
  • Next by thread: Re: Is there a shell tool to find folders greater than a given size?
  • Index(es):
    • Date
    • Thread