Re: Get IP Address Help
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