• 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: Way to get user's IP address into AppleScript variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Way to get user's IP address into AppleScript variable?


  • Subject: Re: Way to get user's IP address into AppleScript variable?
  • From: Jon Pugh <email@hidden>
  • Date: Thu, 8 Aug 2002 11:53:50 -0700

At 10:49 AM -0400 8/8/02, email@hidden wrote:
>set x to do shell script ("/sbin/ifconfig en0 | head -2 | grep inet | cut -d'
>' -f 2")
>display dialog x

Apparently the format of ifconfig changed. This works here:

set x to do shell script ("/sbin/ifconfig en0 | head -3 | grep 'inet ' | cut -d' ' -f 2")
display dialog x

Jon
_______________________________________________
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: 
 >Way to get user's IP address into Applescript variable? (From: email@hidden)

  • Prev by Date: Read File question - OS 9
  • Next by Date: Re: Way to get user's IP address into Applescript variable?
  • Previous by thread: Way to get user's IP address into Applescript variable?
  • Next by thread: Re: Way to get user's IP address into Applescript variable?
  • Index(es):
    • Date
    • Thread