Monday, November 08, 2010 at 12:01 AM.
system.verbs.apps.Netscape.toys.urlJumper
on urlJumper (url) {
if sys.appIsRunning (netscape.id) {
netscape.bringToFront ()}
else {
<<12/30/94
<<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 (!)
<<dwiner@well.com
local (path = netscape.appinfo.path);
if not file.exists (path) {
path = file.findApplication (netscape.id);
if not file.getFileDialog ("Where is Netscape?", @path, 'APPL') {
return};
netscape.appinfo.path = path};
finder.bringtofront ();
finder.open (netscape.appinfo.path);
while not sys.appIsRunning (netscape.id) {};
clock.waitSeconds (2)};
if sizeof (url) > 0 {
netscape.openUrl (url)}}
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.