Re: getting my IP on OS x
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.