• 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: getting my IP on OS x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting my IP on OS x


  • Subject: Re: getting my IP on OS x
  • From: garrett <email@hidden>
  • Date: Mon, 17 Jun 2002 02:52:38 -0500

Sometime 'round 06/17/2002 02:07 AM, so and so (Martin Michel) at such n
such (email@hidden) graced my inbox with this brilliant thought:

> Hi,
>
> try this:
>
>
> on run
> set this_ip to do shell script "/sbin/ifconfig ppp0 | awk
> '/inet/{print $2}'" as text
> display dialog "aktuelle IP Adresse: " & this_ip buttons
> {"Clipboard", "OK"} default button 2
> if the button returned of the result is "Clipboard" then
> set the clipboard to the this_ip
> display dialog "Die IP Adresse ist in der Zwischenablage."
> buttons {""} giving up after 2 default button 1
> end if
> end run

this is just a larger (nicer) version of what I have but yields the same
result

set this_ip to do shell script "/sbin/ifconfig ppp0 | awk '/inet/{print
$2}'" as text


this_ip = ""

when this is run.... again I'm not getting any result of the do shell script
command....


-------
garrett
_______________________________________________
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.

References: 
 >Re: getting my IP on OS x (From: Martin Michel <email@hidden>)

  • Prev by Date: Re: getting my IP on OS x
  • Next by Date: Re: getting my IP on OS x
  • Previous by thread: Re: getting my IP on OS x
  • Next by thread: Re: getting my IP on OS x
  • Index(es):
    • Date
    • Thread