Page 1 of 1
First Tutorial (Calendar): where's the script?
Posted: Thu May 28, 2009 6:55 pm
by saratogacoach
Hi,
Just getting started by doing the first tutorial, the Calendar, and can't find the script to auto-populate the days of the month. Hopefully, soon enough, I'll know where to find things, but would appreciate a lead for now.
Thanks for your help.
Kind Regards,
Posted: Thu May 28, 2009 7:51 pm
by bn
Hi Saratogacoach,
it is cleverly

tucked away in the Revolution Resource Center(in the bar left of the dictionary), getting started, example 2 (Your first stack) and 3 (GUI design)
regards
Bernd
Posted: Thu May 28, 2009 8:55 pm
by saratogacoach
Hi Bernd,
Thanks for your reply.
In the tutorial, under "Populating the Calendar," is the following (bold added):
This will open a script editor in which you write your
code.
For this example your script should loop through each
of the cells in the table and insert an appropriate date
into each. An example of how to do this can be found
in the script of the stack attached to this tutorial. Once
you have written your script you should hit the apply
button at the bottom of the script editor. This will
compile and save your script, allowing you to run it.
Having downloaded RunRev, I can't find the stack that is referred to (see quote above). I've searched in the program install folder and online in the resources, but can't locate the sample stack which I suspect contains the sample code.
Is there another place to look for the sample stack for the Calendar tutorial?
Thanks for your help.
Kind Regards,
Posted: Thu May 28, 2009 8:58 pm
by Duncan
Playing hunt the script is a fun game for us newbies
Right click on the green background from the menu select Card & Stack and from the sub menu select Edit Stack Script. I am guessing that is what you are looking for.
Posted: Thu May 28, 2009 9:07 pm
by saratogacoach
Hi Duncan,
Thanks for your reply.
I'm sorry I have not been clearer. What I am looking for is the actual sample script that I would add in the script editor (which I can locate) for this Calendar project to get it to work (populate the fields I've created).
I suspect the essence of developing projects is learning how to script, understanding the syntax, operators, etc. So, I am eager to see what a sample script looks like, how its constructed, especially one that I can use in this tutorial. Unfortunately, I can't locate the sample of script that I think is referred to in the tutorial.
Kind Regards,
Posted: Thu May 28, 2009 9:16 pm
by bn
Hi Saratogacoach,
the stack is in the Revolution Resource center. At the bottom right there is "Launch Stack". If you click this it loads the example stack. Then as Duncan said, you inspect the script of the stack. You can either choose from the Object Menu->Stack Script, or you click on the inspector in the lower menu bar and then you can choose to edit script of stack. You can also open the inspector by choosing from the Object Menu->Stack inspector.
If this does not work out just give a sign.
regards
Bernd
Posted: Thu May 28, 2009 9:20 pm
by saratogacoach
Hi Bernd,
Yes, thank you (and Duncan). I'm afraid I overlooked the download stack in the corner.
I appreciate your help.
Kind Regards,
Re: First Tutorial (Calendar): where's the script?
Posted: Sat Jun 12, 2010 8:55 pm
by petedskier
I am a trial user and I was working my way through the calendar tutorial. Obviously, I overlooked searching for the script (which I expect that I will be able to find), however shouldn't or couldn't the script be placed into the tutorial. Why have,
Tutorial pdf wrote:An example of how to do this can be found in the script of the stack attached to this tutorial.
in a tutorial for a new user? What is the harm in placing the script into the tutorial itself? The tutorial is not overly lengthy anyway.
Re: First Tutorial (Calendar): where's the script?
Posted: Sat Jun 12, 2010 10:45 pm
by wsamples
Don't overlook the tutorials
here, which are all very well conceived, and accessible to beginners!