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


on reinstallTool () {
		<<6/30/10; 6:16:37 AM by DW
	local (f = frontier.getsubfolder ("apps") + "Tools" + file.getpathchar () + "scripting2.root");
	local (filetext = tcp.httpreadurl (""));
	file.surefilepath (f);
	if file.exists (f) {
		if not dialog.confirm ("Replace the \"Scripting2\" tool?") {
			return (true)};
		try {filemenu.close (@[f])}};
	file.writewholefile (f, filetext); (f);
	dialog.notify ("New version (" + scripting2Info.releaseDate + ") of \"Scripting2\" installed.")};
bundle { //test code
	reinstallTool ()}

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.