• 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: Folder Sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Sizes


  • Subject: Re: Folder Sizes
  • From: Emmanuel <email@hidden>
  • Date: Thu, 23 Mar 2006 18:26:28 +0100

At 12:21 PM -0500 3/23/06, Steve Suranie wrote:

I should have added that I am getting a recursive list of items in the main folder using a shell script -

set thisFolder to choose folder with prompt "Choose a folder"
set mainDirectory to thisFolder
set thisFolder to POSIX path of thisFolder
set folderList to do shell script "ls -R '" & thisFolder & "'"

....

I'm not too versed in Unix - is there a way to limit this to just all
subfolders of the main folder and to return the folder sizes and I can just
skip the Finder/Sys Events all together?

Maybe you need get more familiar with "info for", as that command will tell you whether a given item is a folder, and it will tell you its size also, I think.


As for getting the first level subfolders only, you may need "list folder". Use it with "invisibles false".

Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Folder Sizes (From: Steve Suranie <email@hidden>)

  • Prev by Date: Re: Folder Sizes
  • Next by Date: Re: Replace slash by underscroe in file name
  • Previous by thread: Re: Folder Sizes
  • Next by thread: Replace slash by underscroe in file name
  • Index(es):
    • Date
    • Thread