[1/4] from: antonr::iinet::net::au at: 8-May-2003 15:09
Yes, that's pretty good and useful. I theorize that a launched script has its 'launch word set to a different function that pops up the error dialog. That set must happen after the user.r is done, I think. Setting 'my-launch in the user.r allows us to hang on to the original launch function. Now that we have 'my-launch pointing to the right function who cares if 'launch is set to something else, right? Anton.
[2/4] from: hijim:pronet at: 7-May-2003 21:25
Launcher I wrote a little script based on Carl's my-launch. I put a copy of it in the Windows Startup Folder. It pops up when I start the computer. /H is the path to a USB thumb-drive where I keep all my Rebol scripts. This is great! Now I have immediate one-click access to the Rebol programs I use every day. And they said it couldn't be done! Thanks, Carl. Jim Clatfelter REBOL [ Title: "Launcher" File: %launche.r Date: 7-May-2003 ] system/view/vid/vid-face/color: silver view layout/offset [ across button gold "Registe.r" [my-launch %/H/a-registe.r] button green / 1.8 "Edito.r" [my-launch %/H/1-edito.r] return button blue / 1.4 "Labele.r" [my-launch %/H/a-labele.r] button silver / 1.2 "Custome.r" [my-launch %/H/a-custome.r] return button silver / 1.2 "Bookkeepe.r" [my-launch %/H/a-bookkeepe.r] button red "Quit" [unview/all] ] 500x40
[3/4] from: nitsch-lists:netcologne at: 8-May-2003 14:43
If i want to activate 'launch, i like to restrict access only to some scripts. something like this in %user.r : ;activates 'my-launch only for scripts in %/home/volker/secure/ either parse system/options/path [%/home/volker/secure/ to end] [ my-launch: :launch ][ my-launch: does[alert "naaaaa!" quit] ] Volker Anton wrote:
[4/4] from: antonr:iinet:au at: 9-May-2003 1:20
That's a good idea, but I think it would be pretty safe because a malicious script wouldn't know for sure if it was 'my-launch, 'true-launch or any other word. It starts to matter if we all decide to use 'my-launch. Then it's predictable. On the other hand, a malicious script might be able to easily read %user.r to find out. Mmm... Anton.