Re: Folder Sizes
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