Preparing the scripted dialog box.