• 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: How do you display the IP Address?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you display the IP Address?


  • Subject: Re: How do you display the IP Address?
  • From: Joe <email@hidden>
  • Date: Tue, 25 Aug 2009 16:31:04 -0700

At 3:57 PM -0500 8/25/09, email@hidden wrote:
>I am so close to having this work, I think. I'm back with latest version of the "Help Desk Script" and need some input. I added running a shell script command which does return the correct IP address in Terminal or AppleScript if ran by itself. The question is how to I identify the answer and display it with the other values? Thanks for all the great input on this!

For folks behind a router, the IP address can usually be gotten from the router. This is what I use for a 2Wire Gateway router from AT&T using Lynx.

set theurl to "http://homeportal/xslt?PAGE=B01&THISPAGE=A01&NEXTPAGE=B01";
set routerIP to do shell script "/usr/local/bin/lynx -dump " & quoted form of theurl & " | grep -o '[0-9]*\\.[0-9]*\\.[0-9]*\\.[0-9]*' "

Joe
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: How do you display the IP Address?
  • Next by Date: Re: How do you display the IP Address?
  • Previous by thread: How do you display the IP Address?
  • Next by thread: Re: How do you display the IP Address?
  • Index(es):
    • Date
    • Thread