• 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: Kai <email@hidden>
  • Date: Thu, 17 Jul 2003 19:13:53 +0100

on Thu, 17 Jul 2003 08:58:37 -0600, "Johnny AppleScript" wrote:

> ...am I the only one that wishes the dictionaries included at least one or two
> usage examples?...

Not exactly. ;-)

> set totalMB to ((system attribute "ram ") as number) / 1024 / 1024 & " MB"
> as string
>
> --> "1536.0 MB"

or (shorter - and faster OMM):

set totalMB to ((system attribute "ram ") div 1048576 as string) & " MB"

--> "1536 MB"

--
Kai
_______________________________________________
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.

  • Prev by Date: Re: Finder window toolbar
  • Next by Date: quoting
  • Previous by thread: Getting User name [Was Re: Scripting Safari's Preferences window]
  • Next by thread: quoting
  • Index(es):
    • Date
    • Thread