How to get total memory?

How do get the total memory/RAM on a given computer?

Thanks,
Brad Bumgarner, CTA

Apple offers a few different scripts on the topic.

http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.06.htm

– Rob

Thanks, that’s just what I was looking for.

set totMem to do shell script "hostinfo | grep Primary | awk '{print $4, $5}'"
display dialog totMem