Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: 'launch and scripts running other scripts.

From: jasonic:cunliffe:verizon at: 19-Dec-2001 11:58

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" <[reboler--programmer--net]> To: <[rebol-list--rebol--com]> 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...]