• 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 IP Address Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get IP Address Help


  • Subject: Re: Get IP Address Help
  • From: "Brannock Thomas A." <email@hidden>
  • Date: Tue, 8 Jan 2008 07:40:55 -0700

Use applescript and do this:

set output to do shell script "/sbin/ifconfig en0 | grep 'inet ' | awk '{print $2}'"
display dialog output


Of course you'll have to change the adapter en0 to the one you want the IP address for. Also, i can't take credit for this, I found it here,http://lists.apple.com/archives/Applescript-studio/2003/Oct/msg00072.html

Tom

On Jan 8, 2008, at 7:24 AM, David G. Kahn wrote:

Hello all,
Could anyone help me create an Apple Script or Automator action that will get my computers IP address and display the address in a dialog window. I know it sounds simple and all you masterful guru's out there I am sure this is child's play, however I have Googled extensive and have not found anything other then saving the ip address to a clipboard.



thank you in advance David

David G. Kahn


_______________________________________________ Do not post admin requests to the list. They will be ignored. Automator-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Automator-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Get IP Address Help (From: "David G. Kahn" <email@hidden>)

  • Prev by Date: Re: Get IP Address Help
  • Next by Date: Enable remote desktop client
  • Previous by thread: Re: Get IP Address Help
  • Next by thread: Enable remote desktop client
  • Index(es):
    • Date
    • Thread