Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Interactive prompts with DME Message-ID: <8801240851.AA22693@cory.Berkeley.EDU> Date: 24 Jan 88 08:51:21 GMT Sender: usenet@ucbvax.BERKELEY.EDU Lines: 37 : `saveold escimm `execute `lc -v -b -r '' : :(Yes, I know the quotes aren't closed). This command will save the file :prompt me for a file name and then compile it. The only real problem is :that I must type the file name and the last closing quote. This upsets :my sense of aesthetics :-) Does anyone know of a way to prompt for :just the file name, or (even better) to get at the current file name without :need to prompt? : :Thanks for the help, :J. Hardie Now there's an idea... This will be possible in the next release through the use of remote-control, but currently you are stuck. The only way to do it now is to have only one argument to a command. Another approach you might try is to use the SCANF command to pick off a command sequence from the text (say, from a comment line in a certain format) and completely automate the sequence like this: /* * CHARLIE.C * * * COMPILE: lc -v -b -r charlie.c * */ map cs-c (top first find COMPILE: repeat 8 right scanf %[~]s execute $scanf) -go to line 1, column 1, search for the command specifier, move past specifier so text beyond cursor is the command string, scanf the string (%[~]s == take the entire line), execute the string. Poof. -Matt