RE: [REBOL] Re: 'launch and scripts running other scripts. if you start rebol to run a script, launch is disabled after %user.r finishs. you have to go to console and start script from there by hand. seems its more meant to be an internal function for desktop than a general tool.
-Volker [EMAIL PROTECTED] wrote: > > I tried the script you posted (with my own programs), but when I ran it, I > got a REBOL Dialog box that says "Launch can only be used by launcher > programs." The dialog box has an OK button. I don't get an error. > > I haven't read all of the posts on this subject. What did I miss? This would > be a great way to collect all my programs into a menu. > > Thanks, > Jim > > REBOL [] > > view layout [ > button green / 1.8 "Registers" [launch %registers.r] > button green / 1.8 "Text Editor" [launch %ed-70.r] > button red "Quit" [unview/all] > ] > > > > ----- Original Message ----- > From: Jason Cunliffe <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, December 19, 2001 8:58 AM > Subject: [REBOL] Re: 'launch and scripts running other scripts. > > > > Alan > > > > I tried 'launch and it works for me. I wrote a launch-test.r script: > > > > REBOL [] > > > > view layout [ > > button "imagine" [launch %imagine.r] > > button "quit" [unview/all] > > ] > > > > My %imagine.r does a number of things, so is a good test I think: uses > > request-file to select a PNG file, then extract and execute an embedded > > rebol script, opening another window printing the output if the embedded > > script if needs be. The nice thing is I can keep on doing this as long as > I > > liek becuase launch-test gui is just sitting their independently :-) Just > > what I think we both needed. > > > > That is how it behaves when I run it from within the _same_ directory it > > starts from: > > > > do %launch-test.r > > > > But when I move it somewhere else in the directory structure, for example: > > > > do %../tools/launch-test.r > > > > then I do have a obvious problem. REBOL/View looks for a REBOL > installation > > in ../tools directory and if it does not find it, then throws up its > > installation GUI [the first time]. The next time it will run dierctly as > it > > finds rebol.exe in ../tools. > > > > This behavior is something generally I still don't understand about > > REBOL/View [Win98se]. Namely why and when REBOL/View plants more versions > of > > rebol.exe all over the file structure. I don't know if my config is > damaged, > > or if there is a simple refinement or script param needed to avoid this. > > > > I hope this is some help to you, and that we both get sorted soon. > > > > cheers > > ./Jason > > > > > > ----- Original Message ----- > > From: "alan parman" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, December 19, 2001 10:07 AM > > Subject: [REBOL] 'launch and scripts running other scripts. > > > > > > > If I enter the following at the REBOL console, then the button works. > > > > > > view layout [button [launch %feedback.r]] > > > > > > If I save this as a REBOL script, and run it, then the button doesn't > > work. > > > > > > Seems like a bug to me. If this is a security issue then 'launch could > be > > configured to always 'ask? > > > > [...snip...] > > > > -- > > To unsubscribe from this list, please send an email to > > [EMAIL PROTECTED] with "unsubscribe" in the > > subject, without the quotes. > > > > > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
