• 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 Installed Memory Total
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding Installed Memory Total


  • Subject: Re: Finding Installed Memory Total
  • From: Andrew Oliver <email@hidden>
  • Date: Wed, 16 Jul 2003 21:46:05 -0700

Try:

do shell script "sysctl -a hw.physmem"
--> hw.physmem = 536870912

set totMem to last word of result

On 7/16/03 8:46 PM, "Johnny AppleScript" <email@hidden> wrote:

> OK, looked again at top; now working with the following:
>
> set a to do shell script "top -l1 | grep PhysMem"
> -->"PhysMem: 120M wired, 906M active, 480M inactive, 1.47G used, 30.8M
> free"
>
> I just need to equalize the last to values and add them.
>
> I'd still love a better Terminal command that just returns a total value.
>
> JA
> _______________________________________________
> 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.

  • Follow-Ups:
    • Re: Finding Installed Memory Total
      • From: "Johnny AppleScript" <email@hidden>
References: 
 >Re: Finding Installed Memory Total (From: "Johnny AppleScript" <email@hidden>)

  • Prev by Date: Re: Finding Installed Memory Total
  • Next by Date: Re: Only some image files showing up...
  • Previous by thread: Re: Finding Installed Memory Total
  • Next by thread: Re: Finding Installed Memory Total
  • Index(es):
    • Date
    • Thread