Scripting Manual? Run Script a .bat file

Hi there,

I wonder if there is a manual anywhere with the marliest scripting language in there?

Could the Run Script function run say a .bat file? My idea is to run weekly a restart at like 3am on Sunday but have Mairlist have a dummy object kick it off which would
1. save active desktop
2. run a batch file to force a restart
3. come back… at eg. 3.05am load in the desktop and play.

Cheers,
Ethan

No, there’s no manual for mAirListScript, just the Help file which gives the syntax for everything (provided you have the programmer-style brain to understand it).

mAirList can run ‘batch files’ using a command that you can put into an Action; but you’d honestly be better using an AutoIT script (AutoIT is free BTW) which is scheduled to run daily by using Windows Task Scheduler. The AutoIT script would then do everything you listed.

But …

… why do you want to do this specifically? mAirList is intended to be run pretty much 24/7/365.

BFN
Cad

One application that I would use it for is to run a batch file that fires off a metadata sender for syndicated shows. That way I can send title - artist data for a 1 or 2 hour show. The batch file would be ran from the playlist as I don’t always hard start a show on the hour but let the previous show/song end etc.

ShellExecute('start', 'c:\mybatchfile.bat');
ShellExecuteHidden('start', 'c:\mybatchfile.bat'); // won't display the shell window

Richard: fair play! I didn’t make myself clear. My question to Ethan was specifically: Why would you want to stop mAirList and restart it? (not: Why would you want to run a batch file from within mAirList?)

Also, I’m not certain that a batch file started from ‘within’ mAirList would be able to ‘kill’ mAirList and then still be running to restart mAirList; the batch file thread might stop as soon as mAirList stops, in which case you would not have a restart (hence my previous suggestion to use a Windows automation tool such as AutoIT to do this, scheduled again ‘outside’ of mAirList by the standard Windows Task Scheduler).

BFN
Cad

understood.

My experience with a scheduled reboot has not been good. If something hangs etc (and it will, Bios detects a change, CMOS battery low, blah blah etc) you are off until human intervention.

Always do our reboots in manned hours, even our TV automation system is done when we are in Network. (and they’re Windows boxes but we reboot the whole system weekly, we take no chances!). 8)