realbasic-nug
[Top] [All Lists]

Volume freespace

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Volume freespace
From: John Lowrey <jlowrey at mac dot com>
Date: Sun, 30 Dec 2001 17:24:06 -0900
Hello all,

I am trying to figure out how to get the available freespace on a volume. My attempts with Applescript have come to naught. This is what I have:

on run (diskname)
        tell application "Finder"
                set answer to freespace of disk diskname
        end tell
        return answer
end run

I can't get it to return a value to RB under Mac OS X.  Any suggestions?

Thanks,

John


<Prev in Thread] Current Thread [Next in Thread>