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


on supportedBrowsers () {
		<<10/16/05; 11:48:01 AM by DW
			<<Added support for Firefox on Mac OS X.
		<<1/10/03; 5:49:15 PM by JES
			<<Added support for Safari on MacOS X.
		<<9/21/02; 5:28:28 PM by JES
			<<Added support for Chimera Navigator on OS X.
		<<1/9/02; 3:27:15 PM by PBS
			<<Added support for Mozilla, Opera, and iCab.
	case sys.os () {
		"MacOS" {
			if defined (system.environment.isCarbon) and system.environment.isCarbon {
				return ({'MSIE', 'OWEB', 'MOSS', 'MOZZ', 'OPRA', 'iCAB', 'CHIM', 'sfri', 'MOZB'})}
			else {
				return ({'MSIE', 'MOSS', 'MOZZ', 'OPRA', 'iCAB'})}};
		"WinNT" {
			return ({"iexplore.exe", "netscape.exe"})}}}
<<bundle //test code
	<<local (browsers = supportedBrowsers (), id)
	<<for id in browsers
		<<if sys.appIsRunning (id)
			<<dialog.alert ("Hot damn! " + id + " is running.")

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.