Page 1 of 1

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

Posted: Sun Nov 14, 2021 3:50 am
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.

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

Posted: Mon Nov 15, 2021 9:36 am
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

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

Posted: Mon Nov 15, 2021 12:11 pm
by Wilfrid
Hi Radu,

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

Thanks!
Wilfrid

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

Posted: Mon Nov 15, 2021 12:40 pm
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