Hi George,
Well we have been using your script for months and it is working out great. We are hearing a much wider range of music now with the randomness that the script is providing which is what we had hoped for.
We have only had one minor glitch where the script failed

and that was actually due to one of our scripts. We have scripts that load talk programs into the queue and one day we didn't receive a particular program, so the folder where the show was to be stored was empty. The script that loads the show does a clear queue, loads the program and then does a fade to next. Well since there was nothing to fade to and since no song "ended" and the queue was empty, the script just waited.
I wasn't sure why we had our script clear the queue before loading a program, other than the fact that you don't have to load things up in reverse order. In any event, adding something like an ID to be loaded before the program would probably prevent a situation where nothing gets queued.
Our solution was to turn auto dj mode on so that in the case where nothing is in the queue, it will play something. Once that plays, the script takes over again and fills the queue.
The question I asked at the end of my last message wasn't about how to clear the queue, I wanted to know how to get SAM to start using my clock rules once I end the PAL script. In order to use your script, I changed my clock rule settings to say keep 0 in the queue. This way, my clock rules aren't trying to load songs at the same time that the PAL script is loading songs. Once I end the script though, I wanted a way re-invoke my SAM clock rules again.
One idea we thought of however was to change the clock rules number to keep in the queue to be a few less than we set the PAL script to keep in queue . That way, the PAL will always keep populating the queue and once it stops and the queue falls below the SAM keep in queue figure, the SAM clock rules will take effect. It sounds logical but I haven't tested this yet.
There are a couple other thing that I would like to do that I am not sure of how to do. One is to have a script load an entire album up to play one night a week. I would like it to pick the album at random from a playlist. Each album has it's own folder so perhaps I need to store a list of all the folders somewhere to pick from?
The other thing is I would like to be able to tell SAM to play an entire playlist in order, like a pre-planned playlist that a dj has created and saved. I know there is a way to do this but I am not sure how. Any ideas would be appreciated.
Thanks,
Sharon