Thread: Finding MAC address on apple Mac
03-06-2009, 09: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-29-2013, 12:06 AM
By jmedley in forum Internet, Networking, and WirelessReplies: 4Last Post: 05-12-2011, 12:51 AM
By f22taw2008 in forum Schweb's LoungeReplies: 0Last Post: 03-29-2008, 10:18 PM
By David147 in forum Internet, Networking, and WirelessReplies: 2Last Post: 11-27-2004, 03:01 PM