Re: finding free memory
Re: finding free memory
- Subject: Re: finding free memory
- From: Sander Tekelenburg <email@hidden>
- Date: Mon, 3 Feb 2003 02:30:43 +0100
At 17:44 -0700 UTC, on 2/2/03, Michael Glasser wrote:
>
Is there anyway to have AppleScript set a variable to the amount of
>
free memory you have? I assume there is a fairly simple way using
>
shell commands, but I do not know it... anyone?
You could call vm_stat er top -l1 and then parse the result. But the question
is what you're trying to achieve. Mac OS X is quite different from Mac OS
pre-X where memory is concerned. If memory is needed, the OS simply creates
it (virtual memory). So a second before or after your script learns how much
free memory is available, that amount may have been changed drastically
already.
--
Sander Tekelenburg, <
http://www.euronet.nl/~tekelenb/>
_______________________________________________
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.