Re: Inconsistent results from Finder and System Events
Re: Inconsistent results from Finder and System Events
- Subject: Re: Inconsistent results from Finder and System Events
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 18 Nov 2003 16:06:41 -0500
I'm running OS X 10.2.8 on a 466MHz G4 box. Script Editor 1.9.
Marc [11/18/03 4:05:06 PM]
Christopher Nebel wrote:
From: Christopher Nebel <email@hidden>
Date: Tue Nov 18, 2003 3:49:49 PM America/Detroit
To: "Marc K. Myers" <email@hidden>
Cc: AppleScript Users <email@hidden>
Subject: Re: Inconsistent results from Finder and System Events
What system version are you using? I get consistent answers in
Panther.
--Chris Nebel
AppleScript Engineering
On Nov 16, 2003, at 12:50 PM, Marc K. Myers wrote:
I tried getting the capacity and free space of a volume using System
Events. The results didn't seem to have anything to do with reality.
Then I did the same thing with Finder and got the results I >> expected.
What is System Events really reporting?
tell application "Finder"
log {(capacity of disk "New Guy") / (2 ^ 30), (free space of disk
"New Guy") / (2 ^ 30)}
end tell
--(*37.273979187012, 27.372215270996*)
tell application "System Events"
log {(capacity of disk "New Guy") / (2 ^ 30), (free space of disk
"New Guy") / (2 ^ 30)}
end tell
--(*1.273979187012, 3.372055053711*)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.