Saturday, November 27, 2010 at 4:00 AM.

workspace.userlandSamples.getListDottedIds

<<Changes
	<<11/27/10; 3:23:40 AM by DW
		<<Create an outline with a list of domain names, put the cursor on one of the names, and run this script. It will fill in the IP addresses as sub-heads. 
			<<http://scripting.com/images/2010/11/27/list.gif
local (domain, ip);
op.go (up, infinity);
loop {
	domain = op.getlinetext ();
	try {delete (@system.temp.reverseIpCache.[domain])};
	ip = tcp.dns.getdottedid (domain);
	if op.countsubs (1) == 1 {
		op.expand (1);
		op.go (right, 1);
		op.setlinetext (ip)}
	else {
		op.insert (ip, right)};
	op.go (left, 1);
	if not op.go (down, 1) {
		op.go (up, infinity);
		break}}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.