Re: Ethernet Hardware Address
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.