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

Re: Ethernet Hardware Address


  • Subject: Re: Ethernet Hardware Address
  • From: Reinhold Penner <email@hidden>
  • Date: Sat, 9 Feb 2002 07:58:31 -1000

Steve,

On Friday, February 8, 2002, at 04:05 PM, garbanzito wrote:

> at 2002 02 08, 12:10 -0800, they whom i call Gabe Benveniste wrote:
>> do shell script "AppleSystemProfiler | grep \"Ethernet address\""
>>
>> that'll return the line "Ethernet address = XX.XX.XX.XX.XX.XX"
>
> neat trick. i had never noticed it. it's about 100 times
> faster than the GUI app! people who try it will be
> frustrated unless they doe it like this:
>
> do shell script "/usr/sbin/AppleSystemProfiler | grep \"Ethernet
> address\""

Sill frustrated here, since the above just gives me an error of type 1.
Why is that?

An alternative that works for me is:

set x to paragraph 2 of (do shell script "/sbin/ifconfig en0 ether")

Gotta love that shell,

-Reinhold
_______________________________________________
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.

  • Follow-Ups:
    • Re: Ethernet Hardware Address
      • From: garbanzito <email@hidden>
References: 
 >Re: Ethernet Hardware Address (From: garbanzito <email@hidden>)

  • Prev by Date: Re: Maximum list size [was Re: Sifting a list sans loop]
  • Next by Date: How to get info on number of monitors?
  • Previous by thread: Re: Ethernet Hardware Address
  • Next by thread: Re: Ethernet Hardware Address
  • Index(es):
    • Date
    • Thread