• 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: Hardware Mac Address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Hardware Mac Address (From: Martin Orpen <email@hidden>)

  • Prev by Date: Delays posting to this list
  • Next by Date: Re: Change file rights
  • Previous by thread: Re: Hardware Mac Address
  • Next by thread: Re: Hardware Mac Address
  • Index(es):
    • Date
    • Thread