alan@mtxinu.UUCP (Alan Tobey) (03/25/88)
I'd appreciate help with the following should-be-obvious question involving the "cancel" button in the "ask" command's dialog: I have a button designed to launch an application, asking the user first if he/she'd like to work on a particular existing file rather than open a new file with the application. The script is: ask "Enter existing filename (just click OK if new)" if it is empty then open "disk:folder:application" else open "disk:folder:" & it with "disk:folder:application" end if The ask dialog box puts up both "OK" and "Cancel" buttons, but the Cancel button (whether or not the user enters a filename) puts empty into 'it' and goes on to launch the application with a new document, rather than cancelling the ask dialog or putting "Cancel" into 'it' (as it would from an answer dialog). Is this an intentional 'feature'? Have I missed something, or is there really no way to cancel out of an ask dialog? If the answer's obvious, I'd appreciate email rather than cluttering up the net. Thanks. Alan Tobey, Mt Xinu/Berkeley {uunet,sun,ucbvax}!mtxinu!alan
twakeman@hpcea.CE.HP.COM (Teriann Wakeman) (03/26/88)
How about: on mouseup ask "Enter existing filename" with "new" if it is empty then exit mouseup if it is "new" then . . . end mouseup TeriAnn