• 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: Martin Michel <email@hidden>
  • Date: Mon, 17 Jun 2002 09:07:30 +0200

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

Greetings,

Martin


Am Montag den, 17. Juni 2002, um 08:01, schrieb garrett:

is there a do shell script command to get my ip?



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

  • Follow-Ups:
    • Re: getting my IP on OS x
      • From: garrett <email@hidden>
References: 
 >getting my IP on OS x (From: garrett <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: getting my IP on OS x
  • Next by thread: Re: getting my IP on OS x
  • Index(es):
    • Date
    • Thread