AutomationAtStartup + Play

Hello Torben,

In v2 we used a script to put mAirList in Automation mode, picks up the right hour playlist and starts playing. Maybe it is done in an different way in v5 but I can’t get this script to work in v5. This is the script (already changed some things):

[code]{-------------------------------------------------------------------------------
AutomationAtStartup.mls - Notification Script for mAirList

Enables and activates Automation mode on the first playlist after startup.

Author: Torben Weibert torben@weibert.de
Date: 2007-01-07

See http://www.mAirList.com for further information.
-------------------------------------------------------------------------------}

procedure OnStartup;
begin
PlaybackControl(0).SetAutomation(true);
PlaybackControl(0).AutomationPlay;
CurrentPlayList.Append(Factory.CreatePlayListFromFile(‘C:\Playlists’ + FormatDateTime(‘ddmmyy-hh’,now) + ‘.m3u’), true);
end;

begin
end.[/code]

Can we use this script and where do I need to put/activate it? As Background script? Or, is there an other way?

Thanks for any help on this!

Vincent Volmer

“OnStartup” is now called “OnLoad”, and “Append” should now be “AppendList”.

But this script is actually not needed anymore. You can just do it through the GUI: mAirListConfig -> Actions -> After Startup (select from the list at the top).

Then add three actions:

  • Load playlist
  • Enable automation
  • Start automation playback

If you want mAirList to generate the file name based on the current date and hour, you can use logging-style variables in the filename (e.g. “%Y%m%d-%h.m3u”) of the “Load playlist” action. Don’t forget to turn on variable substitution in the advanced settings of that particular action.

1 Like

AH! I knew there must be something I missed… Thanks for your help!

Works great now!

Vincent