Re: Way to get user's IP address into AppleScript variable?
Re: Way to get user's IP address into AppleScript variable?
- Subject: Re: Way to get user's IP address into AppleScript variable?
- From: Jon Pugh <email@hidden>
- Date: Thu, 8 Aug 2002 11:53:50 -0700
At 10:49 AM -0400 8/8/02, email@hidden wrote:
>
set x to do shell script ("/sbin/ifconfig en0 | head -2 | grep inet | cut -d'
>
' -f 2")
>
display dialog x
Apparently the format of ifconfig changed. This works here:
set x to do shell script ("/sbin/ifconfig en0 | head -3 | grep 'inet ' | cut -d' ' -f 2")
display dialog x
Jon
_______________________________________________
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.