Re: Getting swapfile size
Re: Getting swapfile size
- Subject: Re: Getting swapfile size
- From: Andrew Oliver <email@hidden>
- Date: Tue, 17 Jun 2003 23:26:44 -0700
Since "MyDisk:private:var:vm" is a string, "count of
"MyDisk:private:var:vm"" returns the number of characters in the string,
hence the value 20 in the result.
Instead you need to:
tell application "Finder"
set x to get size of every file in folder "MyDisk:private:var:vm"
end tell
You'll get a list of file sizes which you can add up to get the total size
used.
Andrew
:)
On 6/17/03 10:20 PM, "George Anten" <email@hidden> wrote:
>
I'm trying to get a list and cumulative data size of current swapfiles on my
>
machine, as in:
>
>
tell application "Finder"
>
set x to count of "MyDisk:private:var:vm"
>
set x to x & (data size of "MyDisk:private:var:vm")
>
end tell
>
>
x --> {20,0}
>
>
In Path Finder (with invisibles on), I can see that there's one 76.3 MB
>
swapfile0 (-rw--), one directory 'app_profile' (drwx-) and nothing else.
>
>
Logged in as admin, how does one get swapfile info?
>
>
g/a
>
_______________________________________________
>
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.
_______________________________________________
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.