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

Returning from calendar to parent script...

 [1/10] from: ronald:free at: 19-Apr-2002 2:59


Hi Rebolers, How could I 'do the calendar.r script from within another script and return to this parent script after closing 'calendar ? Cheers Ronald

 [2/10] from: carl:cybercraft at: 19-Apr-2002 21:25


On 19-Apr-02, Ronald Gruss wrote:
> Hi Rebolers, > How could I 'do the calendar.r script from within another script and > return to this parent script after closing 'calendar ?
I'm not sure what the calendar.r script is, but you can just do another script from within a REBOL script and when the second script ends the first script will continue on. Try running this little script from the Console... rebol [] print "Parent script running..." do %calendar.r print "Parent script running again..." HTH. -- Carl Read

 [3/10] from: ronald:free at: 19-Apr-2002 14:02


Hi Carl, Friday, April 19, 2002, 11:25:02 AM, vous avez écrit: CR> On 19-Apr-02, Ronald Gruss wrote:
>> Hi Rebolers, >> How could I 'do the calendar.r script from within another script and >> return to this parent script after closing 'calendar ?
CR> I'm not sure what the calendar.r script is, but you can just do CR> another script from within a REBOL script and when the second script CR> ends the first script will continue on. Try running this little CR> script from the Console... CR> rebol [] CR> print "Parent script running..." CR> do %calendar.r CR> print "Parent script running again..." CR> HTH. Sorry, I have to explain a little more : running the script below, when I clic on the button, script calendar.r works fine, but when I close that last one, the parent layout (containing the button) is closed to! view main: layout [ button "Calendrier" [do %calendar.r] otherstuff: {what else I would integrate in 'main}] Calendar.r can be found in View/Script Library Any ideas ? -- Best regards, Ronald

 [4/10] from: anton:lexicon at: 20-Apr-2002 3:12


You could try something like this: view lay: layout [ button [ ; simulate do %calendar.r view center-face layout [field] wait none view lay ] ] This looks like the script in question: http://www.reboltech.com/library/scripts/calendar.r Anton.

 [5/10] from: ronald:free at: 20-Apr-2002 21:27


Hi Carl, Friday, April 19, 2002, 11:25:02 AM, vous avez écrit: CR> On 19-Apr-02, Ronald Gruss wrote:
>> Hi Rebolers, >> How could I 'do the calendar.r script from within another script and >> return to this parent script after closing 'calendar ?
CR> I'm not sure what the calendar.r script is, but you can just do CR> another script from within a REBOL script and when the second script CR> ends the first script will continue on. Try running this little CR> script from the Console... CR> rebol [] CR> print "Parent script running..." CR> do %calendar.r CR> print "Parent script running again..." CR> HTH. Just tried your tip : works ok The I tested this script : REBOL [] view layout [button "calendar" [ print "Parent script running..." do %calendar.r print "Parent script running again..." ] ] When I clic on 'calendar button, I get two windows, one running 'calendar as expected and th second one (console), but with the text below : Parent script running... Parent script running again... and when I close one window, my script ends. How could I get the behaviour I'm looking for ? -- Best regards, Ronald

 [6/10] from: ronald:free at: 21-Apr-2002 9:41


Hi Carl, Thank you very much, for your time and patience with me, it works very well now.:-)) I've added a small email sender (emailer.r) as well, after add of the /new refinement. I tested (as you adviced me to) the 'launch way, but got a dialog box telling me : "Launch can only be used by launcher programs."(I use View) Anyway, I'm really happy to get closer to my app. This list (you Rebolers !) is IMHO as wonderful as REBOL. Comment dit-on en Anglais : 'Ma belle-mère ne viendra pas dîner à la maison ce week-end !' ? Réponse : 'YYYYYEEEEEEEEEEEESSSSSSS !' :-)) -- Best regards, Ronald

 [7/10] from: carl:cybercraft at: 21-Apr-2002 23:27


On 21-Apr-02, Ronald Gruss wrote:
> Hi Carl, > Thank you very much, for your time and patience with me, it works
<<quoted lines omitted: 3>>
> box telling me : "Launch can only be used by launcher programs."(I > use View)
That's odd. I tested it with View (not View/Pro) and it worked fine. Try just... launch %calendar.r from the Console. It should run the calendar script while returning control of the Console to you immediatly.
> Anyway, I'm really happy to get closer to my app. > This list (you Rebolers !) is IMHO as wonderful as REBOL.
Glad to be of help.
> "Comment dit-on en Anglais : 'Ma belle-m=E8re ne viendra pas d=EEner =E0 > la maison ce week-end !' ?" > R=E9ponse : 'YYYYYEEEEEEEEEEEESSSSSSS !' :-))
Even after a visit to Babel Fish that's still lost in the translation. (: -- Carl Read

 [8/10] from: brett:codeconscious at: 21-Apr-2002 22:11


> > "Comment dit-on en Anglais : 'Ma belle-mère ne viendra pas dîner à > > la maison ce week-end !' ?" > > > Réponse : 'YYYYYEEEEEEEEEEEESSSSSSS !' :-)) > > Even after a visit to Babel Fish that's still lost in the translation. > (:
I think "My mother-in-law is not coming to the house for lunch this week end!" has a wide cultural appeal... :^)) Brett.

 [9/10] from: carl:cybercraft at: 22-Apr-2002 8:55


On 22-Apr-02, Brett Handley wrote:
>> > "Comment dit-on en Anglais : 'Ma belle-m=E8re ne viendra pas d=EEner >> > =E0 la maison ce week-end !' ?"
<<quoted lines omitted: 4>>
> I think "My mother-in-law is not coming to the house for lunch this > week end!" has a wide cultural appeal... :^))
Ah. (; Bael Fish missed out the "in-law" bit... -- Carl Read

 [10/10] from: anton:lexicon at: 22-Apr-2002 23:28


Use of launch is limited to one level. That is; a launched rebol program cannot launch another rebol program. If Ronald tried his program from the desktop, that has already been launched once already. From the console it hasn't, that's why there is a difference. Try this in the console: write %test-launch.r { rebol [] print "attempt launch" launch %test-launch.r } launch %test-launch.r Only the first launch will work. Launch is good for starting another rebol process, though. So if a script has permission, it could modify %user.r just before using: launch "" to start a new rebol process. The new rebol process will use the modified %user.r Anton.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted