• 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: Missing size values in SL Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing size values in SL Finder


  • Subject: Re: Missing size values in SL Finder
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 22 Sep 2009 15:16:12 -0500

On Sep 5, 2009, at 7:47 AM, Doug Tallman wrote:

Curiously, if you ask for a folder's size via Finder's properties, it appears you get "missing value."
But the size is available by calling "info for ..."
Is this a bug, or a sign that we should rewrite scripts that are dependent on Finder properties?

I just wrote, without thinking ...

tell application "Finder"
if (get free space of diskAlias) - (get physical size of sourceFolder) < 10000000 then
"There is not enough free space on the disk \"" & (name of diskAlias) & "\"."
display dialog the result buttons {"Cancel"} default button 1
end if
end tell

It seemed to work just as it's supposed to, no problems. Then I remembered this recent post.
I checked that perhaps the folder needed to be updated first, so I tried this script ...

set sourceFolder to alias "Work_Files:TESTING:AppleScriptUsersTEST"
tell application "Finder"
update folder sourceFolder
display dialog (get physical size of sourceFolder) buttons {"Cancel"}
end tell

In some instances, it gave an incorrect result, but the last few runs gave correct results.
If a few of us experiment with this, perhaps we can discover something, here.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Missing size values in SL Finder
      • From: Yvan KOENIG <email@hidden>
References: 
 >Missing size values in SL Finder (From: Doug Tallman <email@hidden>)

  • Prev by Date: Re: cron/Launchd Editor
  • Next by Date: Re: Missing size values in SL Finder
  • Previous by thread: Re: Missing size values in SL Finder
  • Next by thread: Re: Missing size values in SL Finder
  • Index(es):
    • Date
    • Thread