You can always close the scripts workspace window by clicking the close control. This does not close the file so it will remain open.
Thank you. Tried what you suggested before, but trying again, the problem is solved.
a hint: you can close the script workspace with ⌘ + ⇧ + W