Re: Launching the BrowserLauncher from a macro?

Posted by Wayne Rasband on
URL: http://imagej.273.s1.nabble.com/Launching-the-BrowserLauncher-from-a-macro-tp3701436p3701437.html

> Is it possible to use some macro function to launch the
> BrowserLauncher from a  macro, to open a particular html page?

Yes. The File>Import>URL command opens a URL using the users default  
browser if the URL ends in ".html" or "/". Open the URL with the  
command recorder running to generate the macro code. Here are some  
examples.

Open the ImageJ website:

      run("URL...", "url=http://rsb.info.nih.gov/ij/");

Open Gabriel Landini's "Software" page:

     run("URL...", "url=http://www.dentistry.bham.ac.uk/landinig/ 
software/software.html");

Open an html file on a local disk using a file URL (OS X):

     run("URL...", "url=file:///Users/wayne/source/applet.html");

-wayne