I have created a "transaction variant" with transaction SHD0, and attached a GuiXT script to it. How can I now change this script?

In transaction SHD0, you can find a button "GuiXT script" in the toolbar. Pressing this button will open up an editor with which you can maintain the script.