• 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
Re: finding free memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >finding free memory (From: Michael Glasser <email@hidden>)

  • Prev by Date: Launching applications ...
  • Next by Date: Re: Accessing a 'Scripting Addition's Features
  • Previous by thread: finding free memory
  • Next by thread: telling AIM to press OK on dialog
  • Index(es):
    • Date
    • Thread