Re: Hardware Mac Address
Re: Hardware Mac Address
- Subject: Re: Hardware Mac Address
- From: Martin Orpen <email@hidden>
- Date: Sat, 12 Jun 2004 19:03:09 +0100
on 12/6/04 4:44 pm, Martin Orpen at email@hidden wrote:
>
on 12/6/04 9:06 am, Ronald Hofmann at email@hidden wrote:
>
>
> Hi,
>
> does anyone know a way to get the hardware Mac Address of my computer
>
> someway?
>
>
I'll chuck in a one-liner:
>
>
set myAddress to do shell script "system_profiler SPNetworkDataType |
>
awk '/Ethernet/ { print $3 }'"
Whoops, this worked OK with my Airport connection, but on Ethernet it's
better with this, more specific, line:
set myAddress to do shell script "system_profiler SPNetworkDataType |
awk '/Ethernet Address/ { print $3 }'"
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.