Open WAV and Label file via Named Pipes

I have been able to connect to Audacity via Named Pipes. As a test I send “Open: \n\r” which causes Audacity to show the open dialog.
I dont want a dialog box shown, I want to specify the wav filename in the Open message.

I have also tried ImportAudio and Importlabels but they both just show open dialogs.

Any ideas on how to do this?

The commands that you need are:

OpenProject2: Filename="fully qualified file name"

Import2: Filename="fully qualified file name"

where “fully qualified file name” means the file name and full path, such as “C:\User\Fred\Desktop\my-file.wav”. The file name should be in quotes, but depending on how you are sending the commands, may require the quotes to be escaped.

The full list of built-in commands for Audacity 3.0.2 is here: