Re: Determing the Size of a File
Re: Determing the Size of a File
- Subject: Re: Determing the Size of a File
- From: email@hidden
- Date: Thu, 3 May 2001 23:32:19 EDT
In a message dated 5/3/01 10:57:32 PM,
email@hidden writes:
>
>When you advise people to use "info for" to obtain the size of folders,
>
>it
>
>might be good to note that "info for" was broken for quite a long time
>
>(and
>
>may still be broken) in that it fails if you try to use it on a folder
>
>larger than 2 GB.
>
>
Hmmm, I didn't know that. I do know that it's slow on large folders.
>
What alternatives do you suggest?
Sorry if this has already been suggested (I have not had a chance to follow
this thread), but what's wrong with this?:
Tell Application "Finder"
-- have a folder selected in the Finder
-- or set an alias instead, however you like
size of selection
End Tell
I find that doing this is actually much faster to get the size of a large
folder than waiting for the Finder itself to do "calculate folder sizes" for
a window display. I actually use this in a slightly more complex script on a
OneClick button. You can see the whole script here:
http://www.westcodesoft.com/oneclick/how_to/favorites/size_of.html
Ken Fleisher
email@hidden