Re: getting user's system info
Re: getting user's system info
- Subject: Re: getting user's system info
- From: Eric Geoffroy <email@hidden>
- Date: Fri, 21 Jan 2005 16:26:24 -0800
Check out the dictionary for standard additions.
In the section "Miscellaneous Commands" there is a class called "system
attribute'
According to The AppleScript Definitive Guide, there is a list of
gestalt selectors that will allow you to get user environment variables
and other tidbits. The link in the book didn't work for me. You'll have
to search the ADC at developer.apple.com.
Shell script commands...
vm_stat will get you memory info
df -k will get you disk usage
sysctl hw.cpufrequency gets you CPU freq in Hertz (divide by 1,000,000)
None of these are particularly friendly, BUT, in the Tiger preview I
saw at Macworld, they built these system things into AppleScript. Yahoo
for that!
- Eric
On Jan 21, 2005, at 3:36 PM, Graham Anderson wrote:
is there an applescript / shell script for getting user environment
variables like: ram, cpu, os, and etc
many thanks :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden