• 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: "Johnny AppleScript" <email@hidden>
  • Date: Wed, 16 Jul 2003 23:27:48 -0600

On 03/07/16 10:46 PM, "Andrew Oliver" <email@hidden> wrote:

> do shell script "sysctl -a hw.physmem"
> --> hw.physmem = 536870912
>
> set totMem to last word of result

Sweet!

One adjustment after reading man sysctl:

do shell script "sysctl -n hw.physmem"
--> "1610612736"

Now just need to figure out the correct formula to get it to read in closest
"standard" MB/GB.

Many Thanks!

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.

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

  • Prev by Date: X-Builder
  • Next by Date: Re: Finding Installed Memory Total
  • Previous by thread: Re: Finding Installed Memory Total
  • Next by thread: Re: Finding Installed Memory Total
  • Index(es):
    • Date
    • Thread