Re: Finding Installed Memory Total
Re: Finding Installed Memory Total
- Subject: Re: Finding Installed Memory Total
- From: "Johnny AppleScript" <email@hidden>
- Date: Thu, 17 Jul 2003 00:48:29 -0600
On 03/07/16 11:27 PM, "Johnny AppleScript" <email@hidden>
wrote:
>
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.
Which for reference is:
set totalMB to (((do shell script "sysctl -n hw.physmem") as number) / 1024
/ 1024 round) & " MB" as string
--> "1536 MB"
HTH
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.