Re: Finding Installed Memory Total
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.