• 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: Steve Suranie <email@hidden>
  • Date: Thu, 23 Mar 2006 12:21:37 -0500
  • Thread-topic: Folder Sizes

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?


On 3/23/06 12:17 PM, "Steve Suranie" <email@hidden> wrote:

> I'm trying to get the size of some folders on a file server. When I run my
> script, whether I am using the Finder or System Events I get "missing value"
> returned but when I get info on the folder from my desktop it calculates the
> size (in this case 76.2mb)
>
> Here's the relevant code:
>
> repeat with x from 1 to count of every item of scrubbedList
>     set thisFolder to item x of scrubbedList
>     tell application "System Events"
>         try
>             return properties of (thisFolder as alias)
>         on error errMsg
>             display dialog errMsg
>         end try
>     end tell
> end repeat
>
>
> scrubbedList contains paths to the folders: ImageDump:Online
> _Shop_Originals:2006:OT:OT_apparel:tops:
>
>

 _______________________________________________
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

  • Follow-Ups:
    • Re: Folder Sizes
      • From: Emmanuel <email@hidden>
References: 
 >Folder Sizes (From: Steve Suranie <email@hidden>)

  • Prev by Date: Folder Sizes
  • Next by Date: Re: Folder Sizes
  • Previous by thread: Folder Sizes
  • Next by thread: Re: Folder Sizes
  • Index(es):
    • Date
    • Thread