• 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
Inconsistent results from Finder and System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inconsistent results from Finder and System Events


  • Subject: Inconsistent results from Finder and System Events
  • From: "Marc K. Myers" <email@hidden>
  • Date: Sun, 16 Nov 2003 15:50:40 -0500

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*)

Marc [11/16/03 3:48:52 PM]
_______________________________________________
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.

  • Follow-Ups:
    • Re: Inconsistent results from Finder and System Events
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Display Dialog Text
  • Next by Date: Re: Display Dialog Text
  • Previous by thread: Re: Information needed for remote copy
  • Next by thread: Re: Inconsistent results from Finder and System Events
  • Index(es):
    • Date
    • Thread