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

launch behaviour and quitting

 [1/8] from: arolls:bigpond:au at: 4-Jun-2001 15:40


I disagree with the current launch behaviour, where a launched program can't launch another. This is to prevent launch loops, it is said. But we can still have 'do loops. A done program can still 'do another. And that is useful. It's useful to have loops. Think of a web browser: a page has a link to another page which links back to the first one. That's a good thing. I suggest allowing launching of programs to a certain limit, say 10, after which you could pop a window which says: Script requests permission to launch program x Yes No YesToAll Quit (or just an error message could be better). Otherwise it is difficult to make your own launcher which is itself launched. ie. from my reb-site: http://users.bigpond.net.au/datababies/anton/rebol/index.r Click on the "start" icon to start my mini-launcher. It does its best to launch other programs. The problem is that those programs have the capability to 'quit. For example: click on the second icon under Animations , "anim.r". You can quit this program in two ways: - press "Quit" button (quits everything) - press window close button (continues with calling script, start.r) I would like to know if there is a command I can use in a script which allows me to quit as if I had pressed the close button in the window. ie. "continue from the bottom of this script" If there isn't one I suggest a refinement of 'halt: halt/only. What do you reckon? Anton.

 [2/8] from: gchiu:compkarori at: 4-Jun-2001 18:15


On Mon, 4 Jun 2001 15:40:17 +1000 "Anton" <[arolls--bigpond--net--au]> wrote:
> I disagree with the current launch behaviour, > where a launched program can't launch another.
Agree.
> This is to prevent launch loops, it is said.
I thought it was a security feature.
> Otherwise it is difficult to make your > own launcher which is itself launched. > ie. from my reb-site: > http://users.bigpond.net.au/datababies/anton/rebol/index.r > Click on the "start" icon to start my mini-launcher.
** Access Error: Cannot open /e/rebol/public/users.bigpond.net.au/datababies/anton/rebol/demo/images/bt -process.png ** Where: repend ** Near: load image-file -- Graham Chiu

 [3/8] from: arolls:bigpond:au at: 4-Jun-2001 20:32


Thanks, Graham, I am looking into this problem. For a workaround, I think if you visit each of my anim/ and demo/ "directories", then all the images should be loadable locally, which is what the script tries to do. (forgot about that). I haven't modified the script yet, I will let you know when it is changed. I would appreciate you telling me if the above workaround does not work. :) Regards, Anton.

 [4/8] from: gchiu:compkarori at: 4-Jun-2001 23:10


> I would appreciate you telling me if the > above workaround does not work. :) >
Hi Anton, It works now. Pity Quit doesn't take you back to your launcher layout. -- Graham Chiu

 [5/8] from: arolls::bigpond::net::au at: 5-Jun-2001 1:43

Re(3): launch behaviour and quitting - start.r fixed


Graham, start.r should be flawless now. :) You should be able to delete all the images in the cache and it will still run without bugging you with messages. Thanks for the feedback, Anton.

 [6/8] from: arolls:bigpond:au at: 5-Jun-2001 3:55

Re(2): launch behaviour and quitting


That's a great idea. I will use this, and I hope lots of other people will too, to create their own funky launch programs. :) Anton.

 [7/8] from: g:santilli:tiscalinet:it at: 4-Jun-2001 21:02


Hello Anton! On 04-Giu-01, you wrote: A> I would like to know if there is a command I can use A> in a script which allows me to quit as if I had pressed A> the close button in the window. A> ie. "continue from the bottom of this script" Usually that's unview/all. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

 [8/8] from: carl::rebol::com at: 4-Jun-2001 8:46


WRT launch: This is one of those 1.0 decisions that we will revisit often. We can always relax the launch restrictions in the future. WRT quit/close: There is nothing magic about close... VIEW by default does a DO-EVENTS, which will wait until all windows have been closed, then will return and execute the rest of the script. If you do: unview/all You accomplish the result you are seeking (close). You could write: quit: does [unview/all] before DOing the script. But, you'll need to wrap a throw around it too: quit: does [unview/all throw/name 'done] and use a catch around DO: catch/name [do %the-script.r] 'done -Carl