Monday, November 08, 2010 at 12:00 AM.

scripting2Suite.editor.buttons.editWindow.["00005000\tView"

on view () {
	<<Changes
		<<9/16/10; 11:47:09 AM by DW
			<<If the post has a custom domain go there.
		<<6/2/10; 11:59:34 AM by DW
			<<Created. 
	local (adroutline = address (window.frontmost ()), atts);
	local (localoutline = adroutline^);
	local (oldtarget = target.set (@localoutline));
	op.go (left, infinity);
	op.attributes.getall (@atts);
	if defined (atts.domainToMap) {
		webbrowser.openurl ("http://" + atts.domainToMap)}
	else {
		if defined (atts.url) {
			webbrowser.openurl (atts.url)}
		else {
			scripterror ("Can't view the page because the post hasn't been saved yet.")}}};
bundle { //test code
	view ()}



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.