Not bad. One problem I see is with the title on the Dialog. \"title \"Short Hand Script ~ \". The ~ shoud be \" and that\'s causing an error.