• 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: Richard Morton <email@hidden>
  • Date: Thu, 17 Jul 2003 20:21:50 +1000

On Thursday, July 17, 2003, at 04:48 PM, Johnny AppleScript wrote:

On 03/07/16 11:27 PM, "Johnny AppleScript" <email@hidden>
wrote:

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

No need for a shell script. 'system attribute' (from Standard additions) gets this using a Gestalt Selector:

system attribute "ram " -- trailing space required

This also works in classic MacOS with a slightly different (and forward compatible) syntax:

tell app "Finder to get computer "ram "

I've got a little more info about Gestalt Selectors here:

<http://home.netc.net.au/~sunreal/FooDooLounge/info/gestalt.html>

Cheers,

Sal Ector
_______________________________________________
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: Scripting Safari's Preferences window
  • Next by Date: Re: Scripting Safari's Preferences window
  • Previous by thread: Re: Finding Installed Memory Total
  • Next by thread: Re: Finding Installed Memory Total
  • Index(es):
    • Date
    • Thread