Calling a web browser from xace

Ed Griffiths edgrif at sanger.ac.uk
Wed Jan 22 07:16:09 EST 2003


Brian,

> 1) Pick_me_to_call - This isn't hard to implement
> using a wrapper which generates a command like
> 
> netscape http://www.acedb.org
> 
> The problem is that
> if you already have Netscape running on the desktop,
> this command tries to launch another instance of
> Netscape, and Netscape will ask you to open a new
> profile etc., which is messy. Is there a way to
> tell an already running copy of Netscape to open
> an new window at some URL?

You can use the netscape "-remote" command flag to get pages displayed in an
already running netscape. From the netscape man page:

  -remote remote-command
      Instructs Netscape to execute a command in a Netscape process that is
      already running.  See the online Netscape handbook for a list
of            valid commands.

there are options to get pages displayed in a new netscape window or an existing
one.


> 2) Is there an internal function in xace that
> lets you call a browser? wdemo/wspec/models.wrm seems
> to imply this:
> 
> ?Url    Url UNIQUE Text // Simple, text of URL
>          Template UNIQUE ?Url // use this object as a generic template
>          Reference_tag UNIQUE Text // look for this tag in the reffing
> object for url
>          Remove_prefix UNIQUE Text // prefix to remove to make url
>          Remove_postfix UNIQUE Text // postfix to remove to make url
>          Prepend UNIQUE Text // then add this to the beginning
>          Append UNIQUE Text // then add this to the end
>         Web_location UNIQUE ?WWW_server
> 
> ?WWW_server     Url UNIQUE Text // Simple, text of URL
>                 Use_name Text // (optional) Classname
>                 Rewrite Text UNIQUE Text Text UNIQUE Text
>                 Reference_tag UNIQUE Text // look for this tag in the reffing object
> for url
> 
> I'm sure usage should be self evident, but it would sure
> be nice to have an example.

You can also use this way of getting stuff displayed in a browser, a combination
of reading the comments in wspec/models.wrm and wdoc/url.hmtl distributed with
the source code should get you started.

If you have problems then get back to us at acedb at sanger.ac.uk

cheers Ed


-- 
 ------------------------------------------------------------------------
| Ed Griffiths, Acedb development, Informatics Group,                    |
|        Wellcome Trust Sanger Institute, Wellcome Trust Genome Campus,  |
|               Hinxton, Cambridge CB10 1SA, UK                          |
|                                                                        |
| email: edgrif at sanger.ac.uk  Tel: +44-1223-494780  Fax: +44-1223-494919 |
 ------------------------------------------------------------------------





More information about the Acedb mailing list