• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get System Info - How
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Get System Info - How
      • From: email@hidden
  • Prev by Date: Re: Get System Info - How
  • Next by Date: Is Paste Reference working in script editor 2?
  • Previous by thread: Re: Get System Info - How
  • Next by thread: Re: Get System Info - How
  • Index(es):
    • Date
    • Thread