Way to get user's IP address into Applescript variable?
Way to get user's IP address into Applescript variable?
- Subject: Way to get user's IP address into Applescript variable?
- From: email@hidden
- Date: Thu, 8 Aug 2002 10:49:57 EDT
I had a script that enabled me to pull in the user's IP address when I was
running 10.1, but now that I'm running 10.2, it doesn't work anymore.
Can anyone tell me if there's a better way to retrieve an IP address that
this?
set x to do shell script ("/sbin/ifconfig en0 | head -2 | grep inet | cut -d'
' -f 2")
display dialog x
_______________________________________________
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.