• 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: Does anybody know a fast method to get out myIP?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does anybody know a fast method to get out myIP?


  • Subject: Re: Does anybody know a fast method to get out myIP?
  • From: "Allan McCoy" <email@hidden>
  • Date: Thu, 01 Dec 2005 09:04:37 -0600

email@hidden on Thursday, December 1, 2005 at 5:50 AM -0600 wrote:
Does anybody know a fast method to get out myIP?

on the local machine:

set hostName to do shell script "hostname"
set myIP to do shell script "host " & hostname
set myIP to last word of myIP

or in a single line:

set myIP to last word of (do shell script "host " & (do shell script "hostname"))
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Does anybody know a fast method to get out myIP?
      • From: Emmanuel <email@hidden>
    • Re: Does anybody know a fast method to get out myIP?
      • From: demski <email@hidden>
  • Prev by Date: Re: CURL - what am I doing wrong?
  • Next by Date: Re: CURL - what am I doing wrong?
  • Previous by thread: Re: CURL - what am I doing wrong?
  • Next by thread: Re: Does anybody know a fast method to get out myIP?
  • Index(es):
    • Date
    • Thread