I have written a tcl app which launches a secondary app and it is important that there be only one instance of the secondary app. Currently I am using the following to launch the secondary app:
.mnuBar.mnuUtil add command \
-label "Calc Room Sound" -command {
open "| wish.exe c:/TclFS/RoomSound.tcl"
}
If I select the menu item again I have two instances of RoomSound.tcl running. This is what I want to avoid.
What is the solution?
.mnuBar.mnuUtil add command \
-label "Calc Room Sound" -command {
open "| wish.exe c:/TclFS/RoomSound.tcl"
}
If I select the menu item again I have two instances of RoomSound.tcl running. This is what I want to avoid.
What is the solution?