On 11/9/22 21:58, Leif H Silli wrote:
The advantage of using

       open "%U”

is that the user can use the MacOS Finder to decide which app that should open a certain file type. (This is done via the Show info panel for particular files in the Finder.) But this might also be the disadvantage.

If you want to not rely on the Finder, then another workaround is to simply remove the «-n» from

       open -W -n -a /System/Applications/Preview.app "%F"

so that we get

       open -W -a /System/Applications/Preview.app "%F"

By removing the «-n», we avoid that a new instance is opened every time the command is run … See https://ss64.com/osx/open.html

(I do not know whether the «open» is a MacOS only command of if it also runs on Linux and more.)


Thank you for these details. We'll put them to good use when we'll try to improve the "Helper apps" feature in next version of XXE.

To my knowledge, Linux has no equivalent of "open". If a equivalent of "open" exists then it will be specific to a Linux Desktop. (Linux has many different "desktops". For example, I personally use KDE.)

The Windows equivalent of "open" is "start".



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

Reply via email to