Opening an XPR file in the Project view from the OxygenAuthor.bat command line

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Wilfrid
Posts: 2
Joined: Sun Nov 14, 2021 3:21 am

Opening an XPR file in the Project view from the OxygenAuthor.bat command line

Post by Wilfrid »

I want to be able to open an XPR file in the Project view from the command line by passing the path of the file to OxygenAuthor.bat. When I try this, Oxygen launches then prompts me for an editor from a list of editors, which doesn't include the Project view.

Do I need to create a plug-in for this ?

I'm using Oxygen XML Author 23.1.

Thanks.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Opening an XPR file in the Project view from the OxygenAuthor.bat command line

Post by Radu »

Hi Wilfrid,

The project file has the ".xpr" extension right? With lowercase letters.
It is on the local disk right?
I tested something like this on my side:

Code: Select all

author.bat file:/C:/Users/radu_coravu/Downloads/../openme.xpr
and it seemed to work for me. It should work also without specifying the "file:" protocol in the path.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Wilfrid
Posts: 2
Joined: Sun Nov 14, 2021 3:21 am

Re: Opening an XPR file in the Project view from the OxygenAuthor.bat command line

Post by Wilfrid »

Hi Radu,

For some reason, my projects all have uppercase extensions. I never thought to try lower case. Doh!

Thanks!
Wilfrid
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Opening an XPR file in the Project view from the OxygenAuthor.bat command line

Post by Radu »

Hi Wilfrid,

Oh, you were using upper case letters in the project file extension, this explains it. Right now Oxygen is case sensitive and needs the extension to be lowercase to recognize the file as a project file.
It's strange that I noticed someone else's sample files use project files with upper case extension, I'll add an internal issue to support both forms, for flexibility's sake.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply