iloc is a command-line tool for creating Mac OS Internet Location files (e.g., .webloc, .ftploc, etc.). It is used like so: iloc url [outfile] . If outfile is unspecified, it will use the input URL with all colons and forward slashes replaced by hyphens. The proper extension is appended automatically, depending on the scheme of the URL (see the man page for details).
New in 0.3: 64/32-bit Universal. Removed deprecated methods.
New in 0.2: Universal binary. Reads and writes Tiger-style plist data from/into the data fork of the output file. It will check the resource fork first, however. Got rid of FSSpec-based calls.
New in 0.1.1: If url is not an URL but is a path to a file, iloc will attempt to read it as an Internet Location file and display the embedded URL.
Keep in mind that this is a work-in-progress, and I plan to add more stuff to it (even if only because it's fun).
iloc requires Mac OS X 10.2 or higher. (It might work on 10.1, though; I've forgotten which—if any—of the methods I've used are 10.2+. YMMV.)
iloc 0.3 (tgz) [22,267 bytes] - April 17, 2010
iloc 0.2 (tgz) [24,054 bytes] - May 22, 2006
iloc 0.1.1 (tgz) [14,155 bytes] - May 15, 2005
iloc 0.1 (tgz) [8,277 bytes] - April 26, 2005