Re: Get physical size
Re: Get physical size
- Subject: Re: Get physical size
- From: Jay Louvion <email@hidden>
- Date: Thu, 14 May 2009 10:24:40 +0200
- Thread-topic: Get physical size
Title: Re: Get physical size
On 14.05.2009 10:02, "Yvan KOENIG" <email@hidden> spake thus:
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)
Nice one, thanks, I’ll be trying this out.
Bien cordialement,
j.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
www.studiocasagrande.com
P Please consider the environment before printing this email.
_______________________________________________
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