Well there's a script step called Pause/Resume that does just that, it pauses the script.
You can switch to a layout that has fields (likely global fields) for entering the criteria such as your date range and then pause for the user to enter the data. A button on the layout can resume the paused script when clicked.
I would suggest that your script include Show Custom Dialog when you want User input - it always pauses properly. You can use global fields to hold the values for Input 1 and Input 2. You can then test the values if you wish; even pre-filling with a suggested date range (for example). Then use the globals to continue with your script once they click OK.
You can download demo here (it's a free download site):
Use what works for you.
I usually avoid Show Custom dialog for anything but very simple data entry needs. It's quick and easy to set up, but I prefer to pop up a window that uses a FileMaker layout so that I can take advantage of value lists, field validation and things like the date picker you can select for entring a date into a date field.
The trade off, of course, is I then have to use New Window and some careful scripting to get what I want instead of a one line Show Custom Dialog step.
Thanks guys, two options to try. That helps me out.
Think I'll invest in the on-line training FM have offered through a partner. I tried it during the trial of the FM Pro software before purchasing, and found it a great introduction.
They cover scripting to an intermediate level.