Re: Get System Info - How
Re: Get System Info - How
- Subject: Re: Get System Info - How
- From: Bill <email@hidden>
- Date: Fri, 2 Apr 2004 12:11:36 +0800
How would I go about getting just the "user name" or "ethernet address"
or "RAM available" etc ?
physical RAM size:
(((system attribute "ram ") div 1024 div 1024) as Unicode text) & "MB
RAM"
-- "1024MB RAM"
user name:
system attribute "USER"
-- "bill"
ethernet address, the airport base station ID:
tell application "Internet Connect" to return base station ID of
AirPort configuration "AirPort"
-- "00:03:93:E8:B8:B5"
ethernet address, en0 & en1:
paragraphs of (do shell script "ifconfig | grep ether | cut -d' ' -f 2")
-- {"00:03:93:0e:d4:74", "00:30:65:17:85:1c"}
Hope these help.
bill
_______________________________________________
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.