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