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

Way to get user's IP address into Applescript variable?


  • Subject: Way to get user's IP address into Applescript variable?
  • From: email@hidden
  • Date: Thu, 8 Aug 2002 10:49:57 EDT

I had a script that enabled me to pull in the user's IP address when I was
running 10.1, but now that I'm running 10.2, it doesn't work anymore.

Can anyone tell me if there's a better way to retrieve an IP address that
this?

set x to do shell script ("/sbin/ifconfig en0 | head -2 | grep inet | cut -d'
' -f 2")
display dialog x
_______________________________________________
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: Way to get user's IP address into Applescript variable?
      • From: Deivy Petrescu <email@hidden>
    • Re: Way to get user's IP address into Applescript variable?
      • From: garbanzito <email@hidden>
    • Re: Way to get user's IP address into AppleScript variable?
      • From: Jon Pugh <email@hidden>
  • Prev by Date: unmount disk
  • Next by Date: Re: stripping resource forks from a file.
  • Previous by thread: Re: unmount disk
  • Next by thread: Re: Way to get user's IP address into AppleScript variable?
  • Index(es):
    • Date
    • Thread