Getting environment settings on Mac

Wouter wouter.abraham at pi.be
Thu May 6 12:38:35 EDT 2004


On 06 May 2004, at 18:01, use-revolution-request at lists.runrev.com wrote:

> Message: 6
> Date: Thu, 06 May 2004 11:21:27 -0400
> From: rgould8 at aol.com
> Subject: Getting environment settings on Mac
> To: use-revolution at lists.runrev.com
> Message-ID: <51176083.77ABA6E8.0018446D at aol.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> Can anyone tell me if there's a reliable way to get any of the 
> following system variables on a Mac via Revolution?
>
> MHz speed of the processor
> Amount of available memory (heapspace command docs say it's not really 
> a true value)
> Amount of free hard-drive space
> Whether or not an Ethernet card is available (that's true for just 
> about all Macs isn't it?)
>

Hi,

On Mac OSX you can use the shell command like:

get shell("system_profiler -detailLevel -1")

For more options see the man pages.

HTH
Greetings,
WA



More information about the use-livecode mailing list