• 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: Yvan KOENIG <email@hidden>
  • Date: Tue, 22 Sep 2009 22:48:05 +0200


Le 22 sept. 2009 à 22:16, Luther Fuller a écrit :

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.


Here, on my French 10.6.1

I made ten attempts on the same folder.  All of them returned missing value :-(

Yvan KOENIG (VALLAURIS, France) mardi 22 septembre 2009 22:48:00


 _______________________________________________
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

References: 
 >Missing size values in SL Finder (From: Doug Tallman <email@hidden>)
 >Re: Missing size values in SL Finder (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Missing size values in SL Finder
  • Next by Date: Re: cron/Launchd Editor
  • Previous by thread: Re: Missing size values in SL Finder
  • Next by thread: [OT] looking for Gary Wood
  • Index(es):
    • Date
    • Thread