I would like to allow a praatscript to open the the praat object line. This would allow me to open praat and then automatically allow the script to load objects into the object window.
for example the script
run_something.praat 1.wav 1.TextGrid 0.1 0.2
could open praat and then open the editor to 0.1 and 0.2 in the audio file "1.wav" < this is easy for me to do
I just can't get praat open beforehand to insert what I need.
right now my script looks like this:
form Info
text Sound
text Textgrid
real Start
real End
endform
if sound$ != "" and textgrid$ != ""
Read from file: sound$
Read Strings from raw text file: textgrid$
@read_lab()
selectObject: 1, 3
View & Edit
editor = 3
editor: editor
Select: start , end
Zoom to selection
endeditor
endif
of course it will tell me that View and Edit does not work because the GUI is not open. I cannot use environments because it has to work on windows and linux