• 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
Fwd: 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]

Fwd: Is there a shell tool to find folders greater than a given size?


  • Subject: Fwd: Is there a shell tool to find folders greater than a given size?
  • From: Ed Stockly <email@hidden>
  • Date: Sat, 1 Mar 2008 07:28:13 -0800



Begin forwarded message:

From: Ed Stockly <email@hidden>
Date: February 29, 2008 7:28:52 AM PST
To: Mark J. Reed <email@hidden>
Subject: Re: Is there a shell tool to find folders greater than a given size?


Come forth, all ye Shellites, and tell your tales.


Mark>> I think I'd stick with the Finder on this one.



Mark's right, Gary, no need to bother with the shell when pure appleScript and the finder can handle this one, with a bit of recursion.

-------
property foundFolders : {}
set AppleScript's text item delimiters to tab
GetBigFolders(path to startup items folder)
set AppleScript's text item delimiters to return

display dialog foundFolders as text

on GetBigFolders(startingPoint)
  tell application "Finder"
    set bigFolders to (every folder of startingPoint whose physical size is greater than 3000)
    repeat with thisFolder in bigFolders
      set the end of foundFolders to {thisFolder as text, size of thisFolder as real} as text
      my GetBigFolders(thisFolder)
    end repeat
  end tell
end GetBigFolders
------


=
 _______________________________________________
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

  • Follow-Ups:
    • Re: Fwd: Is there a shell tool to find folders greater than a given size?
      • From: Skeeve <email@hidden>
  • Prev by Date: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Next by Date: Re: Fwd: Is there a shell tool to find folders greater than a given size?
  • Previous by thread: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Next by thread: Re: Fwd: Is there a shell tool to find folders greater than a given size?
  • Index(es):
    • Date
    • Thread