I thought of all those ideas but it seems silly top have 5 copies of the same sequence to insert where you want it. besides if you want your sequences to be random in the playlist it doesn't work to have multiple copies.
So to summarize the custom script below allows you to randomize your playlist and have an opening & closing sequence, as well as a sequence that you can repeat every so many songs (such as be kind to neighbors), and you only have to have one copy of the repeating sequence. as long as it is the second song in your playlist it will only play when you decide.
Thanks to CaptainMurdoch for the adjustments it works great so far been testing all morning.
100 REM *
101 REM * Created: 12/03/13 15:51:04
102 REM * Random: on
103 REM * Repeat: on
104 REM * First Item Once: on
105 REM * Last Item Once: on
106 REM *
110 LET ListName$="2013 Test"
120 SETPLAYLIST ListName$
125 LET x=0
130 ONPLAYBACKEND 140
131 PRINT "At:", FORMATDATETIME$(NOW,5)
132 PRINT "Playing:",ITEMNAME$(1)
133 PLAYITEM 1
134 PRINT "Song Count:",x
136 WAIT
140 ONPLAYBACKEND 300
170 IF PLAYLISTSIZE-2>1 THEN 176
172 PRINT "ERROR: not enough items in playlist to support random playback"
174 GOTO 400
176 LET LastItemPlayed=-1
178 DIM PLAYED(PLAYLISTSIZE)
180 FOR I=1 TO PLAYLISTSIZE
182 LET PLAYED(I)=0
184 NEXT I
186 LET PlayCount=0
188 GOTO 300
200 REM *
201 REM * Play item NextItem
202 REM *
205 IF x=2 THEN 208
206 IF x<2 THEN 213
207 GOTO 213
208 PLAYITEM(2)
209 PRINT ITEMNAME$(2)
210 LET x=0
211 WAIT
213 LET LastItemPlayed=NextItem
214 PRINT NextItem
215 PRINT "At:", FORMATDATETIME$(NOW,5)
220 PRINT "Playing:",ITEMNAME$(NextItem)
221 PRINT "Song Count:",x
222 LET x = x +1
230 PLAYITEM NextItem
240 WAIT
300 REM *
301 REM * Jump here at end of song or sequence
302 REM *
305 LIGHTSOFF
310 IF SECONDSREMAINING <= 0 THEN 400
320 IF PlayCount>=PLAYLISTSIZE-3 THEN 180
330 LET NextItem=RND(PLAYLISTSIZE-3)+3
340 IF PLAYED(NextItem)>0 THEN 330
345 IF LastItemPlayed=NextItem THEN 330
350 LET PLAYED(NextItem)=1
360 LET PlayCount=PlayCount+1
370 GOTO 200
400 REM *
401 REM Reached scheduled end time
402 REM *
410 ONPLAYBACKEND 490
415 PRINT "At:", FORMATDATETIME$(NOW,5)
420 PRINT "Playing:",ITEMNAME$(PLAYLISTSIZE)
430 PLAYITEM PLAYLISTSIZE
440 WAIT
490 LIGHTSOFF
to adjust the number of songs played between special sequence change the following lines.
205 IF x=2 THEN 208
206 IF x<2 THEN 213
The =2 and <2, simply change the 2 to the number of songs you want between, be advised the way the code is written it is zero based so the first song is 0 second is 1 and so on.
Example with a value of 3
Intro
Song - 0
Song - 1
Song - 2
Repeating Message
Song - 0
Song - 1
Song - 2
Repeating Message
Song - 0
Song - 1 ......and so on until the end of the show
Then your closing message.
Thank you all for the help
Justin
PS if you have any questions ask or PM me and I will see what I can do to help.