New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Finding MAC address on apple Mac

Post Reply New Thread Subscribe

Thread Tools

Member Since: Mar 06, 2009
Posts: 1
LCD is on a distinguished road

LCD is offline
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?

QUOTE Thanks

Post Reply New Thread Subscribe

« Novice Web Designer | username password prompt - do not want »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
[How To] Macintosh Keyboard Short Cuts Switcher Hangout 25 06-09-2009 09:53 PM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 02:52 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?