Accessing Properties of URLs with AppleScript

I recently stumbled upon the fact that a string can be coerced to a URL in AppleScript. This is cool because it allows you to access various properties of the URL, including the dotted decimal form of the URL's host.

"http://www.apple.com" as URL
--> {class:URL, scheme:http URL, path:"http://www.apple.com", host:{class:Internet address, DNS form:"www.apple.com", port:80, dotted decimal form:"23.0.29.15"}}

It should be noted that this isn't actually core AppleScript terminology. The "URL" class is terminology from the StandardAdditions scripting addition, which is included with Mac OS X.