I want to Get(scriptname) and use it to rerun the same script again. How can I do this?
Without using something like the MBS plug in. Script 2 could use an if step to check the value of the global variable in order to perform the appropriate script.
Make sure you have an exit condition - a $$Variable for example that gets set when "TheNameOfYourScript" has accomplished its purpose...
"America's a family. We all yell at each other. It all works out." ~ Louis C. K.
You might provide a bit more info on what you are trying to do.
A recursive script call where the same script calls itself is one possible option provided, as StephenWonfor recommended, you provide an Exit option so that you don't get trapped in a loop.
But this is a suggestion based on very little info. If you provide more information on what you want to do, the recommended options may also change.
You can run scripts via name with MBS Plugin:
Monkeybread Software - MBS FileMaker Plugin: FM.RunScript
or schedule a start with a time:
Monkeybread Software - MBS FileMaker Plugin: Component: Schedule
Actually I am running a script and saving the script name in the variable. Then from the display I want to place buttons to allow the user to increment the same report 1 day earlier or later by selecting a script that will rerun the original script. So ...
Script 1 runs, saves the script name in $$var, then displays the report.
Script 2 allows the user to increment the report a day at a time forward or backward by calling Script 1.
Retrieving data ...