In mAirlist we have the ability to create a “Generate playlists” action in the event scheduler for a given amount of hours.
We use this to generate playlists on Friday night until Sunday of the next week, such that our VoiceTrackers have the ability to prepare their playlists for the next week during the weekend.
This has one major drawback: all music, automated program items, etc… are worst-case not updated in a 10 day period, which can be, depending on the time of the year, a very long period.
What we would really like is to the ability to specify what days & hours to generate (e.g. Monday-Friday, 6 & 7 AM) when executing the action, like the manual scheduler in the database app.
That way we would be able to generate the playlists of our VoiceTrackers in advance, and generate non-stop/automated playlists an hour before they are played, giving us the ability to still update the music & program hours almost instantly.
If something like this is possible with a script, I am also open to that solution, but note that we have multiple Hour, Music & Transition templates, so the script would need to use the correct templates for the correct hour, as we configured it in the database.

