Scripts - My Offerings

Hi Jimradio, have you tried the appendplaylist script here:

http://forum.mairlist.com/index.php/topic,2809.0.html

Set this as an event at about 10 minutes to the hour. The next hour’s playlist will appear at the end of anything that still has to play in the current hour.

Should anything be left unplayed to save the presenter removing them, we refresh the playlist during a news break when present with a hotkey set to runscript which loads the current hour playlist.

During automation we use an event to load current hour during the news feed.

Here is an example of a current hour script;

[code]// Load the current hour’s Playlist

begin
CurrentPlaylist.LoadFromM3U(‘C:\Playlists’ + FormatDateTime(‘ddd hh’, now) + ‘.m3u’);
end.[/code]

Remember to change the location and time date format to suit.

Kind regards tony

I think the AdsAndNews script v2.2 (http://forum.mairlist.com/index.php/topic,2724.msg17828.html#msg17828) will give you a working model you can adapt, assuming your News Opener is in fact 0:14 in duration. :wink:

Please feel free to ask any questions and/or request help if you get stuck, or if you can’t get the script to work as you require.

BFN
CAD

Hi guys,

As always - thanks for the quick reply, it is appreciated.

Thanks, Tony. I’ve tried the script - and that actually sounds a good idea for when presenters are in. I’ve now set it to run the current hour script (the same as your configuration?) at 1 minute past the hour in automation and this seems to be working out really well.

I’ve been watching that thread with interest - it looks very comprehensive and certainly very useful. Am I reading right that it sets the time of the news jingle too? Yes - the news opener is 0:14. :slight_smile:

I’m really tempted to try PerfectTime with the playlists too… one step at a time maybe! Thanks again - will spend some time with this and be sure to ask again with any questions.

Correct, Jim. As written, the script looks for a news MP3 file to ‘decide’ whether there is News on-the-hour. If so, it will treat any News Opener as part of the ‘pre-News ad. break Playlist’ which it builds internally, backtimes from the hour, then adds to the current Playlist.

You can easily force the script to ‘assume’ there is always News on-the-hour by changing the line that sets bNewsExists so that it reads:
bNewsExists := true;
Make this change by copying the existing line and commenting it; then change the uncommented line as above. :wink:

I think you would need to make some other changes, particularly to replace the present ProcessNews procedure contents with your sat. feed processing etc.

BFN
CAD