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


on launch () {
	if sys.appIsRunning ( {
		return (true)};
		<<Netscape 1.0N is very picky about how it gets launched
		<<Can't use app.startWithDocument in this situation
		<<We have to launch it using the Finder
		<<And the Finder must be in front when its launched
		<<And we must wait a few seconds (!)
	local (path = netscape.appinfo.path);
	if not file.exists (path) {
		path = file.findApplication (;
		if not file.getFileDialog ("Where is Netscape?", @path, 'APPL') {
			return (false)};
		netscape.appinfo.path = path};
	finder.bringtofront (); (netscape.appinfo.path);
	while not sys.appIsRunning ( {};
	clock.waitSeconds (2);
	return (true)}

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.