Hussein,

This is very useful (as always) and is simpler than what I had come up with.

Unfortunately the Windows version does not seem to work for a URL with a 
fragment identifier. My browser (Firefox) opens the document but misses 
the fragment identifier.

Philip


Hussein Shafie wrote:
> Philip Nye wrote:
> 
>>Can anyone suggest how I can open a default browser window to show a URL
>>from within an XXE macro? I need to have this work on Linux and Windows
>>so I may need two different methods. Is there a fairly simple way to do
>>this?
> 
> 
> No, there is no *simple* way to do this. But there should be one.
> Therefore I've added a "viewHTML" command to XXE. You'll have it in next
> release.
> 
> Meanwhile, using XXE V2.11, you need to use command "start" (see
> http://www.xmlmind.com/xmleditor/_distrib/doc/commands/ch06s68.html)
> with the following parameter:
> 
> On Windows:
> 
> start "" "%U"
> 
> On MacOSX:
> 
> open "%U"
> 
> On Generic Unix:
> 
> (mozilla -remote "openURL(%U)" 1> /dev/null 2>&1) || (mozilla "%U" &)
> 
> Where %U=URL of the document to be displayed by the browser.
> 
> On MacOSX and Generic Unix, ending the parameter with '&' is not needed
> 
> Note that the double quotes (") are integral part of the command parameter.
> 

Reply via email to