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

Re: Get physical size


  • Subject: Re: Get physical size
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 14 May 2009 10:02:41 +0200


Le 14 mai 2009 à 09:21, Jay Louvion a écrit :


Hi all,

I have often had problems when it came to returning the physical size of an element*, especially from mounted netwrok discs.

Does anyone have a foolproof way of doing this, even using a shell script – working around the eternal (or often returning) missing value. Looping works some times, but also sometimes loops for five hours to no avail...

*as in “set MySize to physical size of...” in a tell Finder block.


the Finder is an old lazy beast.

Why not rely on the more efficient "System Events" ?

tell application "System Event"
set myPhysicalSize to physical size of disk item "path:to:the:target:item"
end tell


Yvan KOENIG (from FRANCE jeudi 14 mai 2009 10:02:33)



_______________________________________________
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: Get physical size
      • From: Jay Louvion <email@hidden>
References: 
 >Get physical size (From: Jay Louvion <email@hidden>)

  • Prev by Date: Get physical size
  • Next by Date: Re: Get physical size
  • Previous by thread: Get physical size
  • Next by thread: Re: Get physical size
  • Index(es):
    • Date
    • Thread