Thread: Finding MAC address on apple Mac
03-06-2009, 08:41 PM #1
Finding MAC address on apple Mac
- Member Since
- Mar 06, 2009
I am writing a widget and I want to be able to obtain the user's user name and mac address.
This bit of code works fine for finding the user name:
var userName = widget.system("/usr/bin/id -un", null).outputString;
But when I try to get the mac address using this bit of code:
var macAddress=widget.system('/sbin/ifconfig | grep "ether"', null).outputString;
macAddress is undefined.
Can anybody help me?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By CogitoEAS in forum OS X - Operating SystemReplies: 5Last Post: 05-28-2013, 11:06 PM
By jmedley in forum Internet, Networking, and WirelessReplies: 4Last Post: 05-11-2011, 11:51 PM
By f22taw2008 in forum Schweb's LoungeReplies: 0Last Post: 03-29-2008, 09:18 PM
By David147 in forum Internet, Networking, and WirelessReplies: 2Last Post: 11-27-2004, 02:01 PM