Launching the BrowserLauncher from a macro?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Launching the BrowserLauncher from a macro?

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

Thanks

Gabriel
Reply | Threaded
Open this post in threaded view
|

Re: Launching the BrowserLauncher from a macro?

Wayne Rasband
> 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