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

Re: folder size


  • Subject: Re: folder size
  • From: Rob Jorgensen <email@hidden>
  • Date: Thu, 2 Oct 2003 13:19:36 -0400

At 11:53 PM +1000 10/2/03, John Cochrane wrote:
Thanks for the replies

On Thursday, October 2, 2003, at 10:33 PM, Rob Jorgensen wrote:

size of (info for aFolder)

This works well, although as you said it can take a while with large folders.
It should enable me to move a script between machines without an error on the first run.

On Thursday, October 2, 2003, at 10:42 PM, Emmanuel wrote:
Did you try:

tell application "Finder"
update aFolder
size of aFolder
end tell

Just tried it now and it has the same problems as my original script.
I find it interesting that after the first run it works fine even if Applescript is quit and restarted, yet it fails after a logout.
Why is the behavior different for files than folders?

It doesn't take long to get the size of a single file since it is, generally speaking, a static value. A folder might contain hundreds or thousands of files and/or folders and the size is, generally speaking, dynamic. This means that the folder size must be calculated each time that it's asked for.

-- Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: folder size (From: John Cochrane <email@hidden>)

  • Prev by Date: Re: From Mac Os X Mail to FileMaker
  • Next by Date: Re: Write underlined text to a file
  • Previous by thread: Re: folder size
  • Next by thread: Re: folder size
  • Index(es):
    • Date
    • Thread