I am trying to get the current local IP address using AppleScript so that I can use this to form a URL string, like so:
"http://" & ip & ":8080"
Research has lead me to this command which will return the correct IP:
ifconfig en0|grep "inet "|cut -d ' ' -f 2
I need to save the value of that command so that I can use it in my AppleScript. How can I achieve this? Or is there a better way to get the IP?
Like this