Get physical size of file on mounted disk
Get physical size of file on mounted disk
- Subject: Get physical size of file on mounted disk
- From: Jay Louvion <email@hidden>
- Date: Tue, 10 Mar 2009 20:24:21 +0100
- Thread-topic: Get physical size of file on mounted disk
Title: Get physical size of file on mounted disk
Hi all,
I’m in a bit of a pickle because I have found it quite complicated to get the size of a file when it’s on a mounted disk.
Let me clarify: the system running on the machine used is Tiger, and the mounted disk is an HFS+ sata disk attached to a network server running Tiger (on a 1000MB/s network).
I found that more often than not, my script will return missing value when queried for the physical size of a file. These file are simply jpegs whose size rarely exceeds 6MB, so there shouldn’t need a lot of computing to get this information back. I managed to force it to give me a valid answer using this little routine:
repeat with myStraw in myHaystack
if (name of myStraw) is in myNeedles then
set myPinCushion to myPinCushion & (myStraw as alias)
set mysize to missing value
repeat until mysize is not missing value
tell application "Finder" to set mysize to physical size of myStraw
if mysize is missing value then
tell application "Finder" to update myStraw
end if
end repeat
end if
end repeat
Unfortunately, this sometimes goes on, and on, and on... – seemingly forever. Any advice ?
I haven’t tried the size of info for trick, would that be (for some unknown reason) more powerful to get to my goal ?
Best,
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