OS 9 machine info query
OS 9 machine info query
- Subject: OS 9 machine info query
- From: Ross Pointon <email@hidden>
- Date: Thu, 19 Jan 2006 11:22:20 +0000
Hi,
I'm wondering if anyone could help me with something I'm trying to get
working - I've made a program for collecting machine information for
insurance purposes that I can email out to my users and get them to run
themselves. The problem is, it only works in OS X, not OS 9 which a lot
of them are still using. Does anyone know how to get the information
for an OS 9 machine? I've included the code I've been using below:
set serial_number to do shell script "ioreg -c 'IOPlatformExpertDevice'
| awk '/IOPlatformSerialNumber/ {print $4}' | cut -b 2-12"
set hardware_descr to do shell script "system_profiler
SPHardwareDataType | grep 'Model' | cut -c 22-"
set machine_hw_name to do shell script "uname -m"
set processor_speed to (system attribute "pclk") div 1000000 --not sure
about this
set installed_RAM to (system attribute "ram ") / 1048 div 1000
set MacOS_version to (my gestalt_version_info("sysv", 4))
set starup_disk_name to (text 1 thru -2 of (path to startup disk as
string))
set computer_name to my get_substring(do shell script "grep -A1
'ComputerName<'
/Library/Preferences/SystemConfiguration/preferences.plist | grep -v
key", "<string>", "</string>")
set user_short_name to system attribute "USER"
set user_full_name to (do shell script "finger " & user_short_name
& " | grep Login | colrm 1 46")
set ethernet_MAC_add to do shell script "ifconfig en0 | grep ether |
cut -b \"8-24\""
Thanks in advance,
Ross Pointon
--
Ross Pointon
Computer Support Officer
The University of Sheffield
Department of Psychology
Western Bank
S10 2TP
Telephone : 0114 22 26508
|
_______________________________________________
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