On 25 Sep 2015, at 16:29, Hussein Shafie wrote:
Leif H. S. wrote:

* open -W -n -a /Applications/Firefox.app "%F"

Now, in case you don't like the default value, the command invoking the "default viewer" can be specified using Options|Preferences, "Helper applications" section, "Default viewer" field.

See http://www.xmlmind.com/xmleditor/_distrib/doc/help/toolsOptions.html#helperApplicationsOptions

Thanks.

Please understand that we provide no support whatsoever about the custom command you specify in this "Default viewer" field. It's up to you to figure out what to do.

Allow me to express my view on the command that XXE, by default, insert whenever I, as a user, select a default previewer via XXE’s own interface.

At the page you point to above, one reads the following:

]] Options "-W -n" mean: start a new instance of the application
   [ … snip … ] These options are required when the helper
   application is used to edit the content of an element, the
   content of an attribute or the whole document. [[

This seems to say that the option '-n' (which, if the application is already running, creates a new instance) is necessary when **editing** in an external application. However, my issue was **previewing**. And when **previewing** a file, then, for the average user, there is no need for a new instance (and some applications, like Firefox, do not even permit - at least not in OSX - more than a single instance).

Therefore I propose, FIRSTLY, that XXE should discern between default previewer and other helper applications. And, SECONDLY, that, on a Mac, whenever a user, via XXE’s interface for selecting a defualt previewer, selects a new default previewer, then the '-n' option should not be included in the command-line that by default gets inserted. So for example, if I used XXE’s interface to set Firefox as my default previewer, then, by default, XXE should insert the following command-line:

    open -W -a /Applications/Firefox.app "%F"

(As opposed to the currention situation, when XXE inserts the following command line: open -W -n -a /Applications/Firefox.app "%F")
--
leif halvard silli

--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to