• 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: Get System Info - How
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get System Info - How


  • Subject: Re: Get System Info - How
  • From: "John W. Baxter" <email@hidden>
  • Date: Thu, 01 Apr 2004 17:30:02 -0800

On 4/1/2004 14:35, "Walter Ian Kaye" <email@hidden> wrote:

>> or "ethernet address"
>
> Good question.

do shell script "ifconfig en0 | /usr/bin/awk '/inet / {print $2}'"

Note: There's a space between "inet" and the / above...without it you get
both the IPv4 and IPv6 addresses.

Or, if you want the IPv6 address

do shell script "ifconfig en0 | /usr/bin/awk '/inet6/ {print $2}'"

--John
_______________________________________________
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: Get System Info - How
      • From: Deivy Petrescu <email@hidden>
References: 
 >Re: Get System Info - How (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: combining open and run handlers
  • Next by Date: Re: WWDC and AS
  • Previous by thread: Re: Get System Info - How
  • Next by thread: Re: Get System Info - How
  • Index(es):
    • Date
    • Thread