Praat 6.2.21 - cannot access commands from added commands in the TextGridEditor
rolandomunoz opened this issue · comments
In older releases of Praat, the added commands in the TextGridEditor menu can call commands from that Editor window by default. In the latest release this is also the case, but not when the script contains a form/endform box. Here is my review:
praat6000_win64 - praat6214_win64**
Scripts added to the TextGridEditor menu works fine.
praat6215_win64
Scripts added to the TextGridEditor menu may fail if they call a command of this window. The scope by default is the Objects windows, so users must use editor: object_id to manipulate the commands in the TextGridEditor.
praat6216_win64 - praat6218_win64
Release note: "Editor scripts work again from menus (bug introduced in 6.2.15)"
Comment: Scripts added to the TextGridEditor menu works fine again as in praat6000
praat6219_win64 - praat6221_win64
Release note: "Correct execution of added Objects window script after running a failing editor script (decades-old bug)."
Comment: Scripts added to the TextGridEditor menu apparently works fine again, but not when they contain a dialogue box (form/endform). When a dialogue box is used the issue described in praat6215_win64 raises again.
When I add this script to the TextGridEditor menu, it works.
editor_info$ = Editor info
tmin = Get start of selection
tmax = Get end of selection
writeInfoLine: "Editor info"
appendInfoLine: "Start of selection: ", tmin
appendInfoLine: "End of selection: ", tmax
appendInfoLine: "Editor Info:"
appendInfo: editor_info$
However, if I add a form/endform to the same script, Praat raises an error message.
form Save selection time
boolean Clear_history 0
endform
editor_info$ = Editor info
tmin = Get start of selection
tmax = Get end of selection
writeInfoLine: "Editor info"
appendInfoLine: "Start of selection: ", tmin
appendInfoLine: "End of selection: ", tmax
appendInfoLine: "Editor Info:"
appendInfo: editor_info$
This issue was fixed in Praat 6.2.23.
Thank you, Paul Boersma!