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

Folder Sizes


  • Subject: Folder Sizes
  • From: Steve Suranie <email@hidden>
  • Date: Thu, 23 Mar 2006 12:17:54 -0500
  • Thread-topic: Folder Sizes

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: Steve Suranie <email@hidden>
References: 
 >Workaround for tab into body of new message in Mail (tiger) (From: Tor Langballe <email@hidden>)

  • Prev by Date: Re: Replace slash by underscroe in file name
  • Next by Date: Re: Folder Sizes
  • Previous by thread: Re: Workaround for tab into body of new message in Mail (tiger)
  • Next by thread: Re: Folder Sizes
  • Index(es):
    • Date
    • Thread