When script is added, automatically select script. Also when the dialog is opened, select previous used script.