Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!andy From: andy@cbmvax.commodore.com (Andy Finkel) Newsgroups: comp.sys.amiga.misc Subject: Re: ICONX and ASK question Message-ID: <22181@cbmvax.commodore.com> Date: 5 Jun 91 18:41:06 GMT References: <21126.284b80e7@oregon.uoregon.edu> Reply-To: andy@cbmvax.commodore.com (Andy Finkel) Distribution: usa Organization: Commodore, West Chester, PA Lines: 52 In article <21126.284b80e7@oregon.uoregon.edu> gpotts@oregon.uoregon.edu writes: > >I have a AmigaDOS script file that looks something like this: > >ASK "Wanna do it?" >IF WARN >DoIt >DoItSomeMore >ENDIF >ASK "Did you like it?" >DoItAgain > >If I run this from a shell, all is well. If, however, I use ICONX, when I >doubleclick on the script's icon that I created, ICONX opens a window, the >lines: > >Wanna do it? Wanna do it? > >appear in the window and then, regardless of what I do, the window closes >after a second or two. It sounds like you are invoking the 1.3 IconX program, rather than the 2.0. Use the version command on it to check this. The 1.3 IconX command would only open input for the script if it began with a . command, ie .key place .bra [ .ket ] ASK "Wanna do it?" IF WARN DoIt DoItSomeMore ENDIF ASK "Did you like it?" DoItAgain The 2.0 IconX always opens input. andy -- andy finkel {uunet|rutgers|amiga}!cbmvax!andy Commodore-Amiga, Inc. "If all you have is a hammer, everything looks like a popsicle." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.