- Copy and paste the script into a new Script Editor document.
- Change EMAILADDRESS to an email address of your choosing
- Save the script as an application
- Invoke it
This script can be used as a basis for more tricks if required. For example, make it email the IP by default without presenting the dialog; set up an action in Mail.app for specific subject to call this script, etc. You get the idea. Just my tiny contribution for the great Mac community.

