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

[REBOL] 'launch and scripts running other scripts.

From: reboler:programmer at: 20-Dec-2001 2:50

Please pardon me if this is a repeat, I don't think the first one went through. ---------------------------------- 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? Anyway, I would like to be able to run a script that has, as one part, something similar to the above. I cannot use "'do script", because then the original script exits and the script designated by 'script runs. I have tried various combinations of script: load file (or load/next or load/all) view/new script (or view/new layout [do script]) Or even parse file [from 'layout copy script to 'view] script: layout script view/new script Nothing seems to work. ***Perhaps I should try some sort of face/pane operation? But I would still need some way to interactively layout the script and then "view/new script".*** *** Please, I need ideas on how to run an arbitrary script from a View face button, while keeping the original face open.*** (I am choosing the script from a text-list) Essentially, I want a View script that will interactively run other scripts while remaining open. BTW: the following works when I enter simple text into the field, such as "area" or "text {trial field} field" view layout [f: field button [view/new layout to-block f/text]]